@@ -0,0 +1,1634 @@
+import java.util.Scanner;%0Aimport java.util.StringJoiner;%0Aimport java.util.regex.Pattern;%0A%0Apublic class HelloScannerConsole %7B%0A%0A    static Pattern ipAddressPattern = %0A        Pattern.compile(%22%5C%5Cb((25%5B0-5%5D%7C2%5B0-4%5D%5B0-9%5D%7C%5B01%5D?%5B0-9%5D%5B0-9%5D?)(%5C%5C.%7C$))%7B4%7D%5C%5Cb%22);%0A%0A    public static void main(String... args) %7B%0A        System.out.println(%22Hello Scanner Console!%22);%0A%0A        Scanner sc = new Scanner(System.in);%0A        System.out.println(%22Enter something: %22);%0A        while (sc.hasNext()) %7B%0A            whatsNext(sc);%0A            sc.next();%0A            System.out.println(%22---%22);%0A            System.out.println(%22Enter something: %22);%0A        %7D%0A    %7D%0A%0A    static void whatsNext(Scanner sc) %7B%0A%0A        StringJoiner sj = new StringJoiner(%22, %22);%0A%0A        if (sc.hasNextBigDecimal()) %7B%0A            sj.add(%22BigDecimal%22);%0A        %7D%0A        if (sc.hasNextBigInteger()) %7B%0A            sj.add(%22BigInteger%22);%0A        %7D%0A        if (sc.hasNextBoolean()) %7B%0A            sj.add(%22Boolean%22);%0A        %7D%0A        if (sc.hasNextByte()) %7B%0A            sj.add(%22Byte%22);%0A        %7D%0A        if (sc.hasNextDouble()) %7B%0A            sj.add(%22Double%22);%0A        %7D%0A        if (sc.hasNextFloat()) %7B%0A            sj.add(%22Float%22);%0A        %7D%0A        if (sc.hasNextInt()) %7B%0A            sj.add(%22Integer%22);%0A        %7D%0A        if (sc.hasNextLong()) %7B%0A            sj.add(%22Long%22);%0A        %7D%0A        if (sc.hasNextShort()) %7B%0A            sj.add(%22Short%22);%0A        %7D%0A        if (sc.hasNext(ipAddressPattern)) %7B%0A            sj.add(%22IP Address%22);%0A        %7D%0A        if (sc.hasNext()) %7B%0A            sj.add(%22String%22);%0A        %7D%0A        System.out.printf(%22Next token is one of: %25s%5Cn%22, sj.toString());%0A    %7D%0A%7D%0A

Create HelloScannerConsole.java