This tag is used for questions about similarities between any of various programming constructs. Comparisons include correspondences between API, functionality, syntax, features, methodologies and the like.
Questions tagged [equivalent]
369 questions
3
votes
6 answers
Python string 'Template' equivalent in java
Python supports the following operation:
>>> s = Template('$who likes $what')
>>> s.substitute(who='tim', what='kung pao')
'tim likes kung pao'
(Example taken from Python's official documentation)
Is there an equivalent way in Java for performing…

Omer Dagan
- 14,868
- 16
- 44
- 60
3
votes
1 answer
How to remove similar elements from a Dart list?
I'd like to remove similar elements from a dart list, where similarity is given by some boolean function.
For example in Mathematica I would achieve that as follows:
Union[{2, -2, 1, 3, 1}, SameTest -> (Abs[#1] == Abs[#2] &)]
This statement yields…

Victor Ermolaev
- 721
- 1
- 5
- 16
3
votes
2 answers
\subparagraph{} equivalent in html
I have my habits with LaTeX, then in HTML I don’t know which element can replace the LaTeX’s \subparagraph{} command.
isn’t a good idea because it is the equivalent of the blank line in LaTeX. I can create a special class “subparagraph” but…
isn’t a good idea because it is the equivalent of the blank line in LaTeX. I can create a special class “subparagraph” but…

fauve
- 226
- 1
- 10
3
votes
3 answers
Equivalent lsof -i in Solaris
I have a fast question. I want to know what is the losf -i equivalent command in a Solaris system.
I only want to show the files with network connection.
Thank you!!

Alberto
- 701
- 4
- 9
- 25
3
votes
3 answers
Is there an equivalent to Java Media Framework in C#?
Is there an equivalent to Java Media Framework in C#?

luvieere
- 37,065
- 18
- 127
- 179
3
votes
4 answers
LEFT OUTER JOIN EQUIVALENT
I have a tables contains null values. In ORDER table i have 2 null in PART_ID section and 2 null values in CUSTOMER_ID.
And i have that kind of query:
SELECT O.ORDER_ID , O.ORDER_DATE , O.CUST_ID, O.QUANTITY ,O.PART_ID ,
C.CUST_NAME,…

developerCoder
- 176
- 5
- 16
3
votes
2 answers
What is the equivalent of the Objective-C 'tag' property in Java ?
So I have two JSliders each of which invokes the stateChanged() method and I want to figure out which of the sliders invokes it.
In Objective-C, I used to use the tag property to differentiate which is which. Is there such an equivalent in Java ?

Sami Farhat
- 1,164
- 8
- 12
3
votes
3 answers
Java Equivalent of Oracle translate
Is there any equivalent string function or library in java that behaves the way oracle translate function does?
In oracle I can do this:
select translate(
'23423k!(dfgd){sdf};',
'(){}k!',
'{}()'
) from dual;
to get this:
23423{dfgd}(sdf);
But…

johan.i.zahri
- 316
- 6
- 18
3
votes
5 answers
What is C# equivalent of PHP's mysql_fetch_array function?
I am learning C#/ASP.NET and I am wondering what the C# equivalent of the following PHP code is?
I know the userid, and I want to fetch the rows from this table into the array of the variable "row", so I then can use it as "row['name']" and…

Mike Biff
- 75
- 1
- 5
3
votes
2 answers
Java equivalent for AttributeUsage C#
I have to translate some code from C# to Java and I have the following piece of code :
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
public class PVAResponseAttribute : XmlRootAttribute
{
private…

Alex
- 2,213
- 4
- 32
- 44
3
votes
2 answers
Python equivalent of java ObjectOutputStream and ObjectInputStream?
In java I can transfer objects between server and client by using Object Output Stream and Object Input Stream. Is there anything equivalent in python?
Related:
python equivalent of java OutputStream?

user
- 5,335
- 7
- 47
- 63
2
votes
1 answer
Rake equivalent to make -k (--keep-going)
By default Rake will stop at the first exception raised.
There doesn't seem to be a command line equivalent to make -k, is there any way to do it programmaticaly?

hausen
- 23
- 1
- 2
2
votes
3 answers
.NET String.Format equivalent in Java
I know there is a function string.Format() in .NET
Is there an equivalent version available in Java?

mlzboy
- 14,343
- 23
- 76
- 97
2
votes
3 answers
operators equivalent in delphi
I would like to know Delphi equivalent of the following operators.
++i/--i
i++/i--
i+=1/i-=1
I am aware of just Inc(i) for i++ and Dec(i) for i--.
Also under the notion that Inc(i,1) for i+=1 and Dec(i,1) for i-=1.
But have no idea about --i and…

Shirish11
- 1,587
- 5
- 17
- 39
2
votes
1 answer
Is there a Microsoft SQL Server Profiler equivalent for Progress OpenEdge ABL?
I am looking for an equivalent of Microsoft SQL Profiler for a Progress 4GL database.

Daria Trainor
- 5,545
- 4
- 23
- 30