Java Basics — Input & Output
Hello! Welcome to my content… I’ll be honest here, I’m writing this for my personal reference- but I’m totally fine, sharing it with the…
Wiki topics:
💻 · Programming
Java Basics — Input & Output
Hello! Welcome to my content… I’ll be honest here, I’m writing this for my personal reference- but I’m totally fine, sharing it with the rest of the world! 😇🗺️
Side note — This content is based on Striver’s A2Z sheet, but I’ll be noting only the stuff — “I’ll be learning”. So, let’s get started!
- Input and Output
import java.util.*;
public class Main {
public static void main(String [] args){
System.out.println("Hello World");
Scanner sc = new Scanner(System.in);
System.out.print("Enter text: ");
String text = sc.nextLine();
System.out.print("Enter number: ");
double num = sc.nextInt();
System.out.println("Text: " + text + "\n" + "Number: " + num);
sc.close();
}
} 메타데이터
- post_id
- 91dec518e2e0
- slug
- java-basics-input-output-91dec518e2e0
- url
- https://medium.com/@echarisshiny/java-basics-input-output-91dec518e2e0
- canonical_url
- https://medium.com/@echarisshiny/java-basics-input-output-91dec518e2e0
- author_url
- https://medium.com/@echarisshiny
- status
- ok
- fetched_at
- 2026-08-08 09:10:25