-
-
Save Kaupenjoe/5813f7a39cbfbe465bf723251f5bf5fe to your computer and use it in GitHub Desktop.
J16-5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class Main { | |
public static void main(String[] args) { | |
/* Outputting with println and Inputting with Scanner */ | |
System.out.println("Hello Students!"); | |
int x = 10; | |
System.out.println(x); | |
System.out.println("Outputting some Value: " + x); | |
Scanner scanner = new Scanner(System.in); | |
System.out.println("Type in your Username"); | |
String input = scanner.next(); | |
System.out.println("Your Username is: " + input); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment