scan value from system in c++ like scanner in java code example Example: how to create a Scanner Object in java Scanner console = new Scanner(System.in);