lesson 1 done yay

This commit is contained in:
End Nightshade 2026-02-03 10:03:07 -07:00
parent c17245e959
commit 6dfe1096d8
No known key found for this signature in database
2 changed files with 5 additions and 5 deletions

View file

@ -5,13 +5,13 @@ import java.util.Scanner;
public class U2_L1_Activity_One {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
Scanner scan = new Scanner(System.in);
System.out.println("What is your name?");
String name = scanner.nextLine();
String name = scan.nextLine();
System.out.println("What is your favorite number?");
int favoriteNumber = scanner.nextInt();
int favoriteNumber = scan.nextInt();
System.out.println(
"Your name is " +

View file

@ -9,11 +9,11 @@ public class U2_L1_Activity_Two {
System.out.println("The current order is " + order);
Scanner scanner = new Scanner(System.in);
Scanner scan = new Scanner(System.in);
System.out.println(
"I want to eat something else, what do you want to eat?"
);
order = scanner.nextLine();
order = scan.nextLine();
System.out.println("The order has changed to " + order);
}