how to accept input from console in java code example Example: read input from console variable = input()