• + 0 comments
    // Read and save an integer, double, and String to your variables  
    // write your code below this it is a simple and easy solution.
    
    
         String str = "is the best place to learn and practise coding!";
        a = scan.nextInt();
        b = scan.nextDouble();
        scan.nextLine(); // after reading double , it is used to avoid issue before reading a string
        str = scan.nextLine();
    
        System.out.println(i + a);
        System.out.println(d + b);
        System.out.println(s + str);