-
Books teaching programming often initially avoid use of GUIs.
-
Instead,
a book will usually use some statement
to read a value
from the keyboard
attached to a command shell window.
-
This approach is adopted
for two reasons:
-
the number of new ideas involved is smaller;
-
the amount of code needed is smaller.
-
But in Java
it has not been easy to read a value from the keyboard.