How does this program actually work...?
import java.util.Scanner; class string { public static void main(String a[]){ int a; String s;
use a temporary scan.nextLine(); this will consume the \n character
scan.nextLine();