import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Scanner;

public class HelloScannerDataTypes {
    public static void main(String... args) {
        System.out.println("Hello Scanner Data Types!");

        String string = "Scanner " + BigDecimal.TEN.toPlainString() + " " 
            + BigInteger.TWO.toString() + " "
            + Boolean.TRUE.toString() + " " 
            + Byte.toString(Byte.MAX_VALUE) + " "
            + Double.toString(Double.MAX_VALUE) + " " 
            + Float.toString(Float.MAX_VALUE) + " "
            + Integer.toString(Integer.MAX_VALUE) + " " 
            + Long.toString(Long.MAX_VALUE) + " "
            + Short.toString(Short.MAX_VALUE);
        // Scanner 10 2 true 127 1.7976931348623157E308 3.4028235E38 2147483647
        // 9223372036854775807 32767

        Scanner sc = new Scanner(string);
        String st01     = sc.next();
        BigDecimal bd01 = sc.nextBigDecimal();
        BigInteger bi01 = sc.nextBigInteger();
        boolean bo01    = sc.nextBoolean();
        byte by01       = sc.nextByte();
        double db01     = sc.nextDouble();
        float fl01      = sc.nextFloat();
        int in01        = sc.nextInt();
        long lo01       = sc.nextLong();
        short sh01      = sc.nextShort();
        sc.close();

        System.out.println("---");
        System.out.println(string);
        System.out.println("---");
        System.out.printf("sc.next();           = <%s>\n", st01);
        System.out.printf("sc.nextBigDecimal(); = %s\n", bd01);
        System.out.printf("sc.nextBigInteger(); = %s\n", bi01);
        System.out.printf("sc.nextBoolean();    = %s\n", bo01);
        System.out.printf("sc.nextByte();       = %s\n", by01);
        System.out.printf("sc.nextDouble();     = %s\n", db01);
        System.out.printf("sc.nextFloat();      = %s\n", fl01);
        System.out.printf("sc.nextInt();        = %s\n", in01);
        System.out.printf("sc.nextLong();       = %s\n", lo01);
        System.out.printf("sc.nextShort();      = %s\n", sh01);
    }
}

@@ -67,17 +67,104 @@
 ava.
-util.Scan
+math.RoundingMode;%0Aimport java.util.Random;%0Aimport java.util.Scanner;%0Aimport java.util.StringJoi
 ner;
@@ -324,45 +324,146 @@
 ring
- string = %22Scanner %22 + BigDecimal.TEN
+Joiner sj = new StringJoiner(%22 %22);%0A        sj.add(%22Scanner%22);%0A%0A        sj.add(new BigDecimal(10.0d * 0.0825d).setScale(2, RoundingMode.UP)
 .toP
@@ -466,39 +466,34 @@
 .toPlainString()
- + %22 %22 
+);
 %0A            + B
@@ -485,21 +485,26 @@
         
-    +
+sj.add(new
  BigInte
@@ -510,12 +510,26 @@
 eger
-.TWO
+(64, new Random())
 .toS
@@ -535,22 +535,18 @@
 String()
- + %22 %22
+);
 %0A       
@@ -546,22 +546,23 @@
         
-    + 
+sj.add(
 Boolean.
@@ -576,23 +576,18 @@
 String()
- + %22 %22 
+);
 %0A       
@@ -587,22 +587,23 @@
         
-    + 
+sj.add(
 Byte.toS
@@ -615,38 +615,34 @@
 (Byte.MAX_VALUE)
- + %22 %22
+);
 %0A            + D
@@ -634,22 +634,23 @@
         
-    + 
+sj.add(
 Double.t
@@ -666,39 +666,34 @@
 ouble.MAX_VALUE)
- + %22 %22 
+);
 %0A            + F
@@ -685,22 +685,23 @@
         
-    + 
+sj.add(
 Float.to
@@ -715,38 +715,34 @@
 Float.MAX_VALUE)
- + %22 %22
+);
 %0A            + I
@@ -734,22 +734,23 @@
         
-    + 
+sj.add(
 Integer.
@@ -780,26 +780,19 @@
 LUE)
- + %22 %22 %0A  
+);%0A
         
   + 
@@ -787,20 +787,23 @@
         
-  + 
+sj.add(
 Long.toS
@@ -827,14 +827,10 @@
 LUE)
- + %22 %22
+);
 %0A   
@@ -838,14 +838,15 @@
     
-    + 
+sj.add(
 Shor
@@ -872,17 +872,19 @@
 X_VALUE)
-;
+);%0A
 %0A       
@@ -888,117 +888,47 @@
     
-// Scanner 10 2 true 127 1.7976931348623157E308 3.4028235E38 2147483647%0A        // 9223372036854775807 32767%0A
+String string = sj.toString();%0A        
 %0A   

Update HelloScannerDataTypes.java