System clock changes and Java timer utilities
Hi, If the system clock is changed backward or forward what is the expected result on calls like Thread.wait, Thread.sleep and scheduled timers in Java 1.5? Does the underlying implementation use System.currentTimeMillis or similar or does it count the clock ticks? Is it hardware or OS dependent? Thanks,... 14 Feb 2006 00:17
sorting 3 integers
why does this algorithm not work? class Sort { public static void main (String args[]) { int a, b, c; System.out.println("Geben Sie die erste Zahl ein:"); a = IO.readInt(); System.out.println("Geben Sie die zweite Zahl ein:"); b = IO.readInt(); System.out.println("Geben Sie die dritte Z... 10 Feb 2006 05:43
Problem with Java Control Panel and Firefox
I've been having trouble getting my applets to work in Firefox. The other day, I posted about it and got the advice that I needed to modify certain settings in the Java Control Panel. Today, I finally had a minute to look into that. I launched the Java Control Panel from the Windows Control Panel, went to the A... 10 Feb 2006 00:05
session objects
hi, i was wondering how to put an array of ints into an Object. session.setAttribute(String,Object); how can i make it so that i can retrieve whats in the attribute into an array of ints. meaning something along the lines of int[] = session.getAttribute(String); i know that code won't work. if anyone... 9 Feb 2006 16:19
session management
Hi friends can anyone give me idea regarding how to manage session from user's login to signout. also how to handle security issues. My project is based on java, servlet , jsp and jdbc. with thanks pathik s gandhi ... 7 Feb 2006 07:51
String's indexOf method
Dear all, During the debugging process of a data handling project, we have seen by a profiler that the culprit for long time consuming process is the java.lang.String's indexOf method. Finally we though of using a C program instead of indexOf method. Can anybody provide us a link on such a String class in C... 6 Feb 2006 17:17
is Random Access File really "random access"?
Hi, I am kind of new at this topic, but does anyone know that: is Java's Random Access File really "random access", or just java "simulate" it for newbie coders' easy coding? The difference is, for example, for a 100G file of many records, if the access to it is a REAL random access, then accessing any of its re... 13 Feb 2006 17:02
Constructor
Hello !! i hava confusion about Constructor is function or procedure with respect to c/c++ bcos we generaly we define .... function return value but procedure.... plz argu. that!! ... 3 Feb 2006 12:26
Class design?
If I have a class that will have some data elements that are arrays, should I create the array in the constructor or out? class Test { public String[] var = new String[123]; ... or class Test { public String[] var; public Test() { var = new String[123]; ... Wh... 3 Feb 2006 13:29
Java reading XML files containing long values
In C you can write something like this #define something = "d?aslkdas?" \ "djalkjddlasdj" \ "asd?lask?la" \ "?dadassdl?" to prevent long definitions in one big line, not writing a long clause like: #define something =... 3 Feb 2006 15:34