Creating arrays using GENERICS480 (11/19/2007 5:43:00 PM) comp.lang.java.programmer Hi all,Please help again. I need to resolve this issue. Why is this code notallowed:Gen intGen[] = new Gen[10];According to the book I read by Schildt: "Arrays of specific generictypes simply aren't allowed,... IveCal
Confused with Generics417 (11/19/2007 5:24:29 PM) comp.lang.java.programmer Hi all, Please help. I cant understand this piece of code regarding generics. See the code below: class Gen{ T ob; Gen(){ ob = new T(); // <---- POINT OF CONFUSION } } My question is: why is it illegal... IveCal
OR and AND without parenthesis427 (6/22/2007 2:39:50 AM) comp.lang.java.programmer Hello, I have a question. assuming, all letters below are either true or false. Are the following the same: 1. (A OR B) && (C) && (D OR E OR F OR G OR H) 2. A OR B && C && D OR E OR F OR G OR H ... IveCal
Unterminated String Constant #4916 (4/2/2007 6:08:11 AM) comp.lang.javascript Hello, I have this functions which opens a new window. The function works fine if lines 6 and 7 are omitted. But those lines are important for the next processes so I cant just erase it. Somebody help. It's bee... IveCal
window.open() and the JavaScript content in the new window.087 (4/2/2007 5:46:08 AM) comp.lang.javascript Hello, I created the following sample HTML/JavaScript of my problem. I have a MAIN page. When it is loaded, I want to open a new window that contains the same JavaScript as the main window: alert("OK")... IveCal
Numeric/Decimals only...2179 (3/16/2007 8:45:03 AM) comp.lang.javascript function keyPress(){ if (!(window.event.keyCode >= 48 && window.event.keyCode Hello... I'm new to HTC/JScript thing. I have a textfield that uses the JScript behavior above. (The JScript above only accep... IveCal
Thread throwing an Exception121 (11/9/2006 5:50:37 AM) comp.lang.java.programmer Hello, I got this code from David Reilly's site. What this prog does is terminate the prog after a specified time. What I want to do is just throw an Exception to be caught by other java programs. I tried to th... IveCal
get ResponseCode() and connect()545 (11/8/2006 7:21:11 AM) comp.lang.java.programmer Hello, I have getResponseCode and connect() prob here... I want to connect then get the response code of the remote server. It's been almost 12 hours but I havent been connected and the server has not given me ... IveCal
Test the Speed of 2 programs329 (9/28/2006 1:59:25 AM) comp.lang.java.programmer Hello... I have 2 progs, A and B. I want to know which of the 2 runs faster. I just cant use Date to display the when the progs start and end because I want to see the difference in milliseconds/nanoseconds. Ca... IveCal
ive.cal's replies:
Items(6) /1
get ResponseCode() and connect()545 (11/8/2006 7:21:11 AM) comp.lang.java.programmer Hello, I have getResponseCode and connect() prob here... I want to connect then get the response code of the remote server. It's been almost 12 hours but I havent been connected and the server has not given me ... ive.cal(40)
URLConnection #2616 (6/15/2006 8:41:44 AM) comp.lang.java.programmer Hello... I have a very big prob here. I have 2 IPs. I dunno what happened but when I executed the same progs in the 2 IPs: in the 1st IP, the prog was working but in the 2nd IP, it threw an java.net.UnknownHost... ive.cal(40)
Skip an EXCEPTION!!!617 (5/13/2006 10:30:39 AM) comp.lang.java.programmer hello . . . I have a new prob in here. I WANT to convert a string value to INTEGER. The following will compile but returns an error when I run the code because of the presence of the letter "c" on the third ele... ive.cal(40)
Get the Method Name921 (5/11/2006 6:41:45 AM) comp.lang.java.programmer Hello . . . Somebody help me . . . How will I get the name of the present working method . . . A code snippet below is shown with the part where I want to return the name of the method. please reply . . . thank... ive.cal(40)
proxy #2634 (5/6/2006 7:03:54 AM) comp.lang.java.programmer Properties systemSettings = System.getProperties(); systemSettings.put("http.proxyHost","192.168.0.254") ; systemSettings.put("http.proxyPort", "3128"); Hello... I'm using this code to create a proxy... BUT ho... ive.cal(40)