Is there anyway to make web service calls from a Java client app. (Apache Axis based) in parallel? Does async style Web Service client (Apache Axis based) help?
Is there any way I can get system info, like processor/ram etc (preferably cross platform, in browser)?
I am looking to implement this in a website, so I need it in either flash or a java applet.
In java if I am looping over the keySet() of a HashMap, how do I (inside the loop), get the numerical index of that key?
Basically, as I loop through the map, I want to be able to get 0,1,2...I figure this would be cleaner than declaring an int and incrementing with each iteration.
Thanks.
Why do we use reverse domain name like com.something. or org.something. structure for java packages?
I understand this brings in some sort of uniqueness, but why do we need this uniqueness?
Is there a well-known implementation, that has friendly open-source licensing (not GPL), of an ECC (error correcting code) library (e.g. Reed-Solomon) for Java?
Hi everyone,
I have a double number like 223.45654543434 and I need to show it like 0.223x10E-3
for example,
how can I do it in java????????
URGENT!!!!!!!!!!!
thanks!
i want to create a messagebox which will be automatically close without users input. i tried reading couple of java tutorials. its a timer class. but i couldnt find the code examples.
can someone please help me to do it. a small code example would be great
Hi all,
I have a matrix.I found the 10th power of matrix using Java.After finding the 10th power,I need to round off the double values to 3 decimal places.Please help me to round off the double values in the matrix to 3 decimal places.
In Java if an input argument to a method is invalid, we can throw an IllegalArgumentException (which is of type RuntimeException). In C++, there is no notion of checked and unchecked exceptions. Is there a similar exception in standard C++ which can be used to indicate a runtime exception? Or is there a common style not in the standard but everyone follows in practice for a situation like this?
Or, should I just create my own custom exception and throw it?
I need to get the minimum and maximum values in a collection of floating point values, after applying an absolute value conversion. In python I would do this
min(map(abs, [-5, -7, 10, 2]))
how can I perform the same operation in java in the most elegant way?
In python I can construct a HTML string without worrying about escaping special characters like < or " by simply enclosing the string in triple quotes like:
html_string = """
<html>
<body>
<p>My text with "quotes" and whatnot!<p>
</body>
</html>
"""
Is there a similar way to do this in Java?
Should a future release of Java deprecate the use of raw types to force the migration to generics? I could also see having raw types not allowed by default but allowing them via a compile flag for legacy code.
I have a java.util.Set<City> cities and I need to add cities to this set in 2 ways:
By adding individual city (with the help of cities.add(city) method call)
By adding another set of cities to this set (with the help of cities.addAll(anotherCitiesSet) method call)
But the problem in second approach is that i don't know whether there were any duplicate cities in the anotherCitiesSet.
I want to do some processing whenever a duplicate entry is tried to be entered in thecities set.
Is there a third party library to detect the use of a Java 1.5 library when compiling with a 1.5 compiler with -source 1.4 and -target 1.4? I could use a 1.4 rt.jar in the bootclasspath however I hope there is a better way. To be used, for example, to fail the compile/build if a newer library is used.
i am trying to make java application that can get the information from other active window program ...such as information bar or even screenshot of other active window
is JNI the only option in this case?
thanks
Hi,
I want to develop phone dialer application, the app is to use modem to dial phone numbers and play voice messages .
which java api is to be used,other wise is their opensource IVR paltform to serve that ?
java.util.zip sucks for stream compression. The longer you leave an Inflator/Deflator open without calling end(), the more native memory it uses up. This is a known issue: http://bugs.sun.com/view_bug.do?bug_id=4797189 which nobody seems to care about fixing.
What is a good alternative? Preferably one that is free and is still actively supported by its developers.
How can I assign this string in a Java String?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
thanks
Per the title, do you find the default Java logging framework sufficient for your needs?
Do you use alternative logging services such as log4j or others? If so, why?
I'd like to hear any advice you have regarding logging requirements in different types of projects, and when integrating frameworks is actually necessary and/or useful.
Are there any example log4j configuration files (XML).
I have a java main application.
I want log4j to output to console AND write to file.
Any examples of this would be greatly appreciated.
I'm using netbeans if that matters.
I was wondering if it's possible to have a java package setup using a different subversion repository than the rest. Ideally, I would probably go with a different library project, but in the case of BlackBerry, the 3rd party library linking does not work well, so I would like to just separate my UI package into a different repository than the rest so that I can control the UI better for different OS versions, but leave all the other packages the same.
Is this possible?
In Java I'm trying to test for a null value, from a ResultSet, where the column is being cast to a primitive int type.
int iVal;
ResultSet rs = magicallyAppearingStmt.executeQuery(query);
if (rs.next()) {
if (rs.getObject("ID_PARENT") != null && !rs.wasNull()) {
iVal = rs.getInt("ID_PARENT");
}
}
From the code fragment above, is there a better way to do this, and I assume that the second wasNull() test is redundant?
Educate us, and Thanks
The question but in C#. So does Java have C#'s command? I need it for Matches-SearchTerm-Files-relationship.
foreach(var i in BunchOfItems.SelectMany(k => k.Items)) {}
Given a list of potential class names:
1. Alaska
.
.
.
50. Wyoming
Is there a tool that will create empty java class files for each with supplied parameters?
I'm thinking of something like the "New...Class" dialog in Eclipse, only on steriods. :-)
Thanks in advance,
Kyle