Computer Science Canada

My first java program...

Author:  Paul [ Wed Dec 10, 2003 11:31 pm ]
Post subject:  My first java program...

Tonight, I suddenly got this wild idea I wanted to learn JAVA, so I dug out my dad's old text, heres my first JAVA program... I know its lame... and I made 27 mistakes on my first try, I think thats a record. But Im learning JAVA yay! Very Happy

Author:  xtreemboarder [ Tue Dec 27, 2005 1:09 pm ]
Post subject: 

lol... post the .java file not the .class... leet programmer my left nut Laughing

Author:  [Gandalf] [ Tue Dec 27, 2005 4:11 pm ]
Post subject: 

Errr... "Posted: Thu Dec 11, 2003 12:31 am"... Yeah...

And if I'm not mistaken, you can easily just execute the Java bytecode.

Author:  md [ Tue Dec 27, 2005 4:12 pm ]
Post subject: 

xtreemboarder wrote:
lol... post the .java file not the .class... leet programmer my left nut Laughing

Notice that he has 1900+ posts compared to your 9? And that he said he was just learning java? Need I also point out your thread about getting a program to "write the code for you"? Think before you speak, or don't and look like an ass... your choice.

Author:  Stork [ Mon Feb 27, 2006 4:23 pm ]
Post subject: 

By the way Cornflake you shouldn't compare Strings with the equals operator Razz

Author:  Andy [ Mon Feb 27, 2006 5:02 pm ]
Post subject: 

that's in c++.. it works fine.. also, the new java 1.50 allows that comparision if im not mistaken

Author:  MysticVegeta [ Mon Feb 27, 2006 6:37 pm ]
Post subject: 

Stork wrote:
By the way Cornflake you shouldn't compare Strings with the equals operator Razz


Should I also point out that Cornflake posted this 3 months ago.

Author:  Stork [ Mon Feb 27, 2006 7:02 pm ]
Post subject: 

Andy wrote:
that's in c++.. it works fine.. also, the new java 1.50 allows that comparision if im not mistaken

Whoops. I presumed it was in java since this is the java forum. Sorry. But I don't think 1.5.0 allows that comparisons.. maybe I'm mistaken.

Author:  [Gandalf] [ Mon Feb 27, 2006 7:44 pm ]
Post subject: 

Why would it matter that this is the Java forum? That's his 'signature', it shows up at the bottom of all his posts, no matter the forum.

Also, you are mistaken. Out of doubt myself, I checked, and you can use the equals operator on Strings now.

Author:  md [ Mon Feb 27, 2006 7:47 pm ]
Post subject: 

*sigh* since syntax highlighting is working again maybe I'll change it back... though it seems it isn't helping to get people to think. IT'S A 3 MONTH OLD POST YOU TWIT!

end of line.

Author:  Andy [ Tue Feb 28, 2006 8:46 am ]
Post subject: 

yea.. when i told my compsci prof, he didnt even believe me.. oh wells

Author:  wtd [ Tue Feb 28, 2006 12:15 pm ]
Post subject: 

All versions of Java will let you write:

code:
"hello" == "hello"


However, they are doing a referential comparison of the two String objects, which anyone with even a mediocre understanding of Java should immediately understand.

Author:  Stork [ Tue Feb 28, 2006 5:59 pm ]
Post subject: 

That's what I thought. String.equals(String) compares char-by-char, iirc.

Author:  Andy [ Wed Mar 01, 2006 8:38 pm ]
Post subject: 

? we just told you you were wrong..


: