3 import java
.io
.FileReader
;
4 import java
.util
.Scanner
;
12 public static void main(String
[] args
) throws Exception
14 Scanner sc
= new Scanner(new FileReader("02-lifts.txt"));
15 int exit
= Integer
.MIN_VALUE
; //replaceable floor value
21 input
= sc
.next(); //just one line of input in fact
24 System
.out
.println("Input was " + input
);
26 for (char ch
: input
.toCharArray())
44 System
.out
.printf("final floor %d, highest exit %d%n", floor
, exit
);