View Single Post
  #1 (permalink)  
Old 01-07-2008, 10:20 PM
bluekswing bluekswing is offline
Member
 
Join Date: Jun 2007
Posts: 14
bluekswing is on a distinguished road
Quick Stupid Question
Would the following code work? (I know I could test it out and will when I'm in front of a computer that has eclipse/netbeans. I'm currently at work and just don't have access to any programming environment and the curiosity is killing me!!!)


So to satisfy my curiousity


public class Test {


public static void main (String[] args) {


int x = 10;
int y = 9;
String condition = ">";

if (x condition y) {

System.out.println("This works");

} //end if

} //end main

}//end class


Thanks a bunch for the help!

Last edited by bluekswing : 01-07-2008 at 10:24 PM. Reason: Added semi-colons
Reply With Quote
Sponsored Links