I've been trying this program. But I'm not getting the required output.
import java.util.*;
class MiscTest {
    public static void main(String[] args) {
        int i = 10;
        double d = 4.0;
        String s = "Lavante ";
        Scanner scanner = new Scanner(System.in);
        int j;
        double dd;
        String ss;
        j = scanner.nextInt();
        dd = scanner.nextDouble();
        ss = scanner.next();
        System.out.println("\n" + (i + j));
        System.out.println(d + dd);
        System.out.println(s.concat(ss));
    }
}
The input I've given:
The Output I got:
I need the whole sentence "Lavante is from Maserati" as output. But, I'm getting only one word from the Second String. Help me. Thanks in advance.


 
     
     
     
    