| Thread | Last Post | Replies |
|
| java assertions | 19 Jan 2007 12:40 GMT | 5 |
I was thinking about assertions in java and I dont really understand why they are needed. I have read the article on the sun web site. http://java.sun.com/j2se/1.4.2/docs/guide/lang/assert.html and perhaps Im being tired but I dont see why you cannot just throw
|
| getting xml structure in java | 19 Jan 2007 11:22 GMT | 3 |
hi every one, I have xml file and also xsd of same, but according to situation user manually provide xml & xsd files to my program. my problem is i didn't know about the structure of xml files although
|
| Play audio clip in an Application | 19 Jan 2007 04:59 GMT | 12 |
I'm trying to play an audio clip by using Applet's newAudioClip() method. That method takes a URL. The .wav file is located in a jar file (the only jar file). For example: if myJar.jar is the only jar file
|
| Integer as key in HashMap | 19 Jan 2007 04:59 GMT | 12 |
if I have an Integer object as a key in a HashMap, and I create that Integer from an int, use that to put() a String as value in the HashMap, can I later create a new Integer object, from the same int value, and use this latter Integer object to get() the value of that String I ...
|
| How do I play an audio clip in a Java Application? | 19 Jan 2007 04:32 GMT | 7 |
I have been able to do it using the Applet.newAudioClip(URL) Is there another (easy) way? Do I have to dive into the guts of Java's sound packages?
|
| Generics, extending LinkedList<T>, and unchecked casts | 19 Jan 2007 01:38 GMT | 6 |
I need an ordered sequence, so I extended LinkedList<T>. Since I'm implementing an ordered collection, its elements must implement Comparable<T>. I came up with the following implementation, which seems to work, but I cannot figure out how to avoid the unchecked cast
|
| String Vs. StringBuffer | 19 Jan 2007 00:21 GMT | 5 |
method(){ String a=""; String c=""; }
|
| [Algorithm] Sum of Primes < 1000000 | 18 Jan 2007 23:18 GMT | 50 |
I was messing around on a site where you answer questions for points. (No prizes or anything) Anyway, they say our programs *should* execute in less than 1 minute if well formed.
|
| Yet another generics question: Needs unchecked conversion to conform to ... | 18 Jan 2007 22:29 GMT | 14 |
I spent a lot of time massaging the code below to avoid a warning, without success. I pasted a sample class and inner classes that shows what I want to do. I wrote two versions of a factory method: one that does not generate
|
| ANT: Return status from javac task | 18 Jan 2007 19:40 GMT | 1 |
I dont know if this is the appropriate group for ANT build questions, sorry if its not. In my ANT build.xml, I've a compile task calling javac compiler, pretty basic.
|
| determine the mouse cursor position without mouse event | 18 Jan 2007 19:27 GMT | 6 |
is there a way to determine the mouse cursor position apart from intercepting a mouse event such as drag, i.e., sometimes i want the cursor position even if no mouse event has taken place tom arnall
|
| About xml loading in tomcat webapps. | 18 Jan 2007 19:00 GMT | 1 |
Iam using xml type of loading in tomcat webapps. Iam using tomcat 5.0.28 webserver.Iam placing thread.xml file in webapps directory with follwing code. <Context path="/thread" docBase="applications/thread" debug="0"
|
| Connection Pooled | 18 Jan 2007 18:53 GMT | 2 |
I want to use connection pool just like those mensioned in the following link but for MSSQL and MySQL. Do I have to depend on the vendor package? http://www.lc.leidenuniv.nl/awcourse/oracle/java.920/a96654/connpoca.htm#1057365
|
| help with java assignment | 18 Jan 2007 18:32 GMT | 2 |
Was just hoping someone could shed a bit of light on how to approach this assignment. It would seem we have to determine the value of a in order to determine how many times the method m() is called, but there doesn't seem to be enough information to determine a's value. Any tips
|
| Images and OO | 18 Jan 2007 17:49 GMT | 2 |
I am writing a very simple programs which displays a different coloured target depending on what colour has been selected (using a combo box). I have an abstract class called Target and three classes called GreenTarget, RedTarget and YellowTarget which all extend Target.
|