int i = 4;
String s ="Hi ";
Scanner scan = new Scanner(System.in);
System.out.println("enter Integer");
int m=scan.nextInt();
System.out.println("enter string");
*String t = scan.next();
**String t = scan.nextLine();
System.out.println(i+m);
System.out.println(s+t);
when I use *scan.next() then it will only read a single word, another side when I use **scan.nextLine() it will directly show the output