I just started learning Java (two months and counting), and I still have lots of questions and a whole lot to learn. Right now I want to use the
a = 8
b = 9
c = 1
d = 9
You can use a delimiter with the scanner. You can use an empty string as delimiter for this case.
String input = "8919"; Scanner s = new Scanner(input).useDelimiter(""); a = s.nextInt(); b = s.nextInt(); c = s.nextInt(); d = s.nextInt(); s.close();