a. is the right (i think)
why you can't run it? I don't know if the classname is the problem?
All classes should have a big letter, in your case:
public class Incr {
...The file should also be named Incr.java (compiled the name will be Incr.class) My answer may not solve anything, it might be a typoerror from you, but thats the general "rule" // Jan Aren� -----Ursprungligt meddelande----- Fr�n: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]F�r Miao, Franco CAWS:EX Skickat: den 30 januari 2002 00:30 Till: [EMAIL PROTECTED] �mne: Java 2 question anyone has idea about this? for some reason I can run the class after I compiled it. thanks for help, anyway... public class incr { public static void main(String args[]) { int i , j; i = j = 3; int n = 2 * ++i; int m = 2 * j++; System.out.println(i + " " + j + " " + n + " " + m); } } a. 4 4 8 6 b. 4 4 8 8 c. 4 4 6 6 d. 4 3 8 6 e. 4 3 8 8 f. 4 4 6 8 =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
