I have looked at this problem several times. Does anyone have an idea why this is unresolved? The input shows the name Sara was entered and the output shows the remaining text. I'm not seeong it.
package com.codegym.task.task03.task0320;
/*
The humble programmer
*/
import java.io.*;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
Scanner scan = new Scanner(System.in);
String name=scan.nextLine(); Scanner sc = new Scanner(System.in);
System.out.println("Enter your name:");
System.out.println(name + " makes $120,000 a year. Ha-ha-ha!");
}
}