Log In · Register

 
Computer Science, Smells Like Java....
Levy2k6
post Aug 11 2004, 09:38 PM
Post #1


Word.
*******

Group: Member
Posts: 3,004
Joined: Jul 2004
Member No: 34,673



anyone take or is taking this class???

i'm taking this year and it was my first day of school and it seemed pretty cool...

i'm bored, ur most likely bored. let's talk about COMPUTER SCIENCE!
 
 
Start new topic
Replies
Ken
post May 24 2006, 09:35 PM
Post #2


SPD EMERGENCY!
***

Group: Member
Posts: 89
Joined: May 2005
Member No: 144,659



Im taking AP Comp Sci too!! I love the class! I hate my teacher!

public class Createblog
{
public static void main (String [] args)
{
FINAL int AWESOME_NESS;
String createblog.equals(AWESOME_NESS);
System.out.println(AWESOME_NESS);
system.out.exit(0);
}
}



and such things.
 
*mipadi*
post May 24 2006, 09:37 PM
Post #3





Guest






QUOTE(Ken @ May 24 2006, 10:35 PM) *
Im taking AP Comp Sci too!! I love the class! I hate my teacher!

public class Createblog
{
public static void main (String [] args)
{
FINAL int AWESOME_NESS;
String createblog.equals(AWESOME_NESS);
System.out.println(AWESOME_NESS);
system.out.exit(0);
}
}
and such things.

That Java won't compile! wink.gif
 
chasingvictory
post May 24 2006, 10:22 PM
Post #4


nicorie
****

Group: Member
Posts: 196
Joined: Apr 2006
Member No: 394,679



QUOTE(mipadi @ May 24 2006, 10:37 PM) *
That Java won't compile! wink.gif


yea isn't using ".equals" only for strings/objects? and AWESOME_NESS is an int?
 
*mipadi*
post May 24 2006, 10:34 PM
Post #5





Guest






QUOTE(chasingvictory @ May 24 2006, 11:22 PM) *
yea isn't using ".equals" only for strings/objects? and AWESOME_NESS is an int?

Indeed, equals() can only compare objects—although in Java 5.0, an int might automatically be upgraded to an Integer object in cases such as this, so that might be legal. I can't remember for sure, though.

Of course, final is still illegally capitalized. wink.gif But that's okay, it still pretty much works.
 

Posts in this topic
Levy2k6   Computer Science   Aug 11 2004, 09:38 PM
F1R3B4T   computer science eh? care to xplain?   Aug 12 2004, 02:34 AM
Levy2k6   don't know what Computer Science is???? its ...   Aug 12 2004, 05:25 AM
evdxgirl   I took it freshman year   Aug 12 2004, 08:17 AM
BiGdRaGoN31   DONT take it,boring as helll, i took it sophmore y...   Aug 12 2004, 10:24 AM
Levy2k6   my computer science teacher is actually pretty coo...   Aug 12 2004, 04:06 PM
mipadi   That's awesome! Computer science, as a fie...   May 11 2006, 11:22 AM
chasingvictory   Right now I'm taking AP Computer Science A. Th...   May 11 2006, 01:34 PM
No Fear   Gigabyte!   May 11 2006, 02:22 PM
Ken   Im taking AP Comp Sci too!! I love the cla...   May 24 2006, 09:35 PM
mipadi   QUOTE(Ken @ May 24 2006, 10:35 PM) Im tak...   May 24 2006, 09:37 PM
chasingvictory   QUOTE(mipadi @ May 24 2006, 10:37 PM) Tha...   May 24 2006, 10:22 PM
mipadi   QUOTE(chasingvictory @ May 24 2006, 11:22...   May 24 2006, 10:34 PM
Xenro   I'm taking this class and it's finally f**...   May 25 2006, 01:12 AM
Stately Lover   In college I want to double major...Engarish Liter...   May 25 2006, 01:42 AM
yoshie   you should take it. i took comp sci, honors comp s...   May 25 2006, 01:46 PM
magicfann   :O~ i started taking it in 6th grade and we learne...   May 25 2006, 07:14 PM
Smoogrish   QUOTE(magicfann @ May 25 2006, 8:14 PM) :...   May 29 2006, 03:16 PM
sm0kinm0nky   writeln('Hello World!'); we're r...   Jun 22 2006, 12:43 PM
Kristinaa   I just remembered I'm taking this class next y...   Jun 22 2006, 12:43 PM
unix494   i am taking AP computer science next year, and i t...   Jun 24 2006, 04:26 PM
mipadi   I wish there was a "wtf" package in Java...   Aug 18 2006, 12:58 PM
uLoVeMikeRoch   QUOTE(mipadi @ Aug 18 2006, 1:58 PM) I wi...   Aug 22 2006, 11:55 PM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: