I don't understand the "/*"? public class Test5 { public static void main (String args []) { /* This is the start of a comment if (true) { System.out.println("Done the test"); Test5 = new test5(); } /* This is another comment */ System.out.println ("The end"); } }
remember /* can only be ended by */ any // or /* in between does not count. So all the lines from /* This is the start of a comment to This is another comment */ are comments. Only the last print statement is executed. Run the program will confirm this. C:\JavaRanch>javac Test5.java C:\JavaRanch>java Test5 The end
Have you tried this Mock Exam Testing Engine yet?<br /><a href="http://www.mycgiserver.com/~nan111/index.html" target="_blank" rel="nofollow">www.mycgiserver.com/~nan111/index.html</a>
So it takes a day for light to pass through this glass? So this was yesterday's tiny ad?
a bit of art, as a gift, that will fit in a stocking