Hi I'm just beginner in Java and I don't undestand one thing what's the difference between this two codes:
System.out.println("Write a number: ");
int a = Integer.parseInt(sc.nextLine());
System.out.println("Write a number: ");
int b = sc.nextInt();