CS2_08_Printing - CS2 Module 8 Category: Elements of Java...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
CS2 Module 8 Category: Elements of Java Topic: Printing Objectives Basic information to print
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
CS 2 Introduction to Object Oriented Programming Module 8 Elements of Java Basic Printing
Background image of page 2
Basic Printing Much of Java programming uses Graphical User Interfaces for input and output. We will cover this later in the course. Java also includes some basic support for simple printing which you will find extremely useful for debugging!
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Printing to Screen CS1: (display <argument>) Java: System.out.println(<argument>); System.out.println( ); // prints blank line System.out.println(5); // prints 5 * System.out.println(“Hello World”); System.out.println("Hello " + "World"); “println” vs. “print” in Java: println includes “carriage return” at end, next print or println appears on a new line print causes next print or println to begin at next print location on same line A single string!
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/23/2012 for the course CS 1371 taught by Professor Stallworth during the Fall '08 term at Georgia Institute of Technology.

Page1 / 12

CS2_08_Printing - CS2 Module 8 Category: Elements of Java...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online