Lessons 16 – 19 Review

How do we import the Scanner class from the Java library?
import Scanner.scan()
import java.util.Scanner;
What method would you use to scan a String?
nextInt()
nextScan()
nextString()
What method would you use to scan for an int?
nextInt()
nextScan()
nextString()
What would our last index point be if we declared an array as: String names[] = {“Bob”, “Bill”, Murray”}; ?
0
2
3
Who owns the Java language
Arbiter
Oracle
IBM

Leave a Reply

%d bloggers like this: