Измените
System.out.println("I am trying to add the number a few spaces after the colon:");
, чтобы не печатать новую строку - вы также должны flush()
, когда вы это делаете.Например,
System.out.print("I am trying to add the number a few spaces after the colon: ");
System.out.flush();
Кроме того, у вас была опечатка здесь
new Scanner(system.in);
должно быть
new Scanner(System.in);