{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Module 1 Java - import java.util.Scanner public class...

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

View Full Document Right Arrow Icon
import java.util.Scanner; public class InputOutput {public static void main(String[] args){ /*Using print statements*/ System.out.print("Print first "); System.out.print("Print second "); /*Using println statements*/ System.out.println("Print third"); System.out.println("Print fourth"); System.out.println("Print fifth"); /*Create a scanner for inputs*/ Scanner input = new Scanner(System.in);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}