Example2_22

Example2_22 - //Line 8 System.out.println(); //Line 9...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
public class Example2_22 { public static void main(String[] args) { int a = 65; //Line 1 int b = 78; //Line 2 System.out.println(29 / 4); //Line 3 System.out.println(3.0 / 2); //Line 4 System.out.print("Hello there.\n"); //Line 5 System.out.println(7); //Line 6 System.out.println(3 + 5); //Line 7 System.out.print("3 + 5");
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: //Line 8 System.out.println(); //Line 9 System.out.println(2 - 28 / 7); //Line 10 System.out.println("a"); //Line 11 System.out.println("a = " + a); //Line 12 System.out.println("b = " + b); //Line 13 System.out.println("a + b = " + (a + b)); //Line 14 } }...
View Full Document

This note was uploaded on 06/17/2011 for the course COMP 2301 taught by Professor Staff during the Spring '10 term at Kennesaw.

Ask a homework question - tutors are online