Originally posted by Kevin Tysen: ...What is the difference between these?
String line = null String line = ""
And if line==null, will this give you an error? int x = line.length();
"" is an empty String (an object). But "null" means that the variable has no object to point to. So what happens when you try to dereference a null value?
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer sscce.org
Stan James
(instanceof Sidekick)
Ranch Hand
Joined: Jan 29, 2003
Posts: 8791
posted
0
I suspect your loop is not going to do what you want. Try to "play computer" and imagine an empty file. The first read gives you a null. What happens as it is written?
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Kevin Tysen
Ranch Hand
Joined: Oct 12, 2005
Posts: 255
posted
0
Thank you!
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.