You might have a setting that configures a weird delimiter. You can get the bytes of your delimiter by running:
StringBuilder sb = new StringBuilder();
for (byte b : in.delimiter().toString().getBytes()) {
sb.append(String.format("%02X ", b));
}
System.out.println(sb);
On my Ubuntu Java 1.8u202 64bit I get:
5C 70 7B 6A 61 76 61 57 68 69 74 65 73 70 61 63 65 7D 2B
If that's the case, you can specify the delimiter explicitly, e.g.
Scanner in = new Scanner(System.in).useDelimiter("\n");
Another thing you can try is the following snippet which hard cods the inputs, and allows to change the delimiter easily for further testing:
public static void main(String[] args) {
String delim = "\n";
String[] values = new String[]{ "1", "aaa", "IND", "1.2" };
Scanner in = new Scanner(String.join(delim, values));
int n = in.nextInt();
String name = in.next();
String place = in.next();
double num = in.nextDouble();
System.out.printf("%d\t%s\t%s\t%f\n", n, name, place, num);
}