get input in java from user in terminal code example Example: read input from console variable = input()