{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

ReadTest - System.out.println(Keyboard.readString public...

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

View Full Document Right Arrow Icon
import cs1.Keyboard; //import java.util.Scanner; public class ReadTest { public static void main(String[] args) { foo(); bar(); } public static void foo() { // Scanner scan = new Scanner(System.in); // System.out.println(scan.nextLine());
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: System.out.println(Keyboard.readString()); } public static void bar() { // Scanner scan = new Scanner(System.in); // System.out.println(scan.nextInt()); System.out.println(Keyboard.readInt()); } }...
View Full Document

{[ snackBarMessage ]}