using java datainputstream to read data from console code example Example: read input from console variable = input()