Computer Science, Smells Like Java.... |
Computer Science, Smells Like Java.... |
![]()
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! |
|
|
![]() |
![]()
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
#3
|
Guest ![]() |
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! ![]() |
|
|
![]()
Post
#4
|
|
nicorie ![]() ![]() ![]() ![]() Group: Member Posts: 196 Joined: Apr 2006 Member No: 394,679 ![]() |
|
|
|
*mipadi* |
![]()
Post
#5
|
Guest ![]() |
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. ![]() |
|
|
![]() ![]() |