Question about Generics
I am currrently trying to "genericize" some of my older classes but I'm having trouble with this simple class: ================================================================ public class IntRange extends TreeSet { public IntRange(int firstInt, int secondInt) { add(new Integer(firstInt)); ... 21 Jan 2006 17:27
invalid flag error
hi, i m trying 2 compile a servlet from the command prompt.. i change dir to the one containing the Login.java file. then i type in javac -classpath %CATALINA_HOME%/common/lib/servlet.jar Login.java it gives an invalid flag error "files/apache". my tomcat base dir is in d:\program files\Apache Group. can somebo... 18 Jan 2006 16:03
Who is bookmarking my site?
The statistics monitoring software we are using does not monitor who is visiting us from bookmarks. To me, that would be very informative data to have. First of all, it would tell us "who" thinks our website is important enough to include us as book marks. But, more importantly, I can run statistical algorithms ... 23 Jan 2006 10:04
Source of Network Pong in Java please ?
Good day dears members of the comp.lang.java.programmer. Please, could You please show me where could I find the source code of the classic game "Pong" for two players in a network. The two clients are connected by a server. Thank-You freeposte ... 15 Jan 2006 13:47
EXCEPTION_ACCESS_VIOLATION
I recieved the following error, can anyone tell what may be causing this? # # An unexpected error has been detected by HotSpot Virtual Machine: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d0e7ab9, pid=3188, tid=4040 # # Java VM: Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode, sharing) # Probl... 16 Jan 2006 15:49
Anonymous Class question
Hi, Can someone pls explain why the error in the example below? tia. public class testclass { public static void main (String[] a) { testclass tc = new testclass() { int intvar = 0; intvar = 1; // compile time error here - why? }; } } ... 18 Jan 2006 02:43
Understanding NAT, Firewalls, TCP/IP
I am asking this for two reasons: 1. I want to know if I am in any danger of BitTorrent like need for firewall configuring if I write a Java app that uses pure sockets talking to a server. The clients always initiate conversations. Do I have to use HTTP to be safe from firewalls blocking outgoing calls? 2. I ... 14 Jan 2006 02:26
char cannot be dereferenced
Hello Ik get an error on this piece of code: if((word.charAt(i)).equals("a"){ ..... } Error: char cannot be dereferenced Can someone tell me what's wrong? Or how can I compare each letter of the word to the "a"? Thanks ... 11 Jan 2006 13:30
Implementing the compareTo method
Hi, I have written an Edge class that takes two Point values as parameters and I want to make the class implement comparable but I dont know how to do it. This is what I have got so far: public class Edge implements Comparable<Edge> { Point point1; Point point2; double ymin, ymax, xvalue,... 10 Jan 2006 15:02
Loox / JLoox experts needed
Still on Looxmaker 3.4 and have tons of .g Format files that need translating into another package (JLoox, Visio, etc.). Need help with determining file layout, translation program, etc. Compensation included. Let me know if you're interested? ... 9 Jan 2006 09:38