
/*

	Tom DeDonno

	Programming Examples Relative to Text Section 2.3

	MyPrintStuff
	uses build in object System.out and methods
 	print no newline; println new line
 
 */

public class MyPrintStuff {

	public static void main( String[] args ) {

		int number = 7;
		System.out.println( "Lucky number = " + 13 +
		"Secret number = " + number );
		//note no space after 13, Can you fix This?

		String greeting = "Hello Programmers!";
		System.out.println( greeting );
		//Should print out-> Hello Programmers!

		System.out.println( "One, two, buckle my shoe." );
		System.out.println( "Three, four, shut the door." );
                System.out.println( "+++++++++++++++++++++++++++" );
		//println adds a newline to end of output
		//print   doesn't output a newline
		System.out.print( "One, two,");
		System.out.print( " buckle my shoe." );
		System.out.println( " Three, four, " );
		System.out.println( " shut the door." );
                System.out.println( "============================" );
                
		//println + converts all objects to String
		System.out.println( "The answer is " + 42 );
		System.out.println( "Half is " + (1.0/2.0) );
		System.out.println( "Third approximation:" + (1.0/3.0) );
		} //end Main
}
		
