--- id: java-output title: "Java Output" category: "Programming_Language" status: "draft" verification_status: "conceptual" canonical_id: "" aliases: ["println()", "print()", "μžλ°” 좜λ ₯"] duplicate_of: "" source_trust_level: "B" confidence_score: 0.9 created_at: 2026-07-04 updated_at: 2026-07-04 review_reason: "" merge_history: [] tags: ["java", "programming", "w3schools", "output", "println"] raw_sources: ["https://www.w3schools.com/java/java_output.asp"] applied_in: [] github_commit: "" --- # [[Java Output]] ## 🎯 ν•œ 쀄 톡찰 (One-line insight) `println()` and `print()` differ only in whether a newline follows β€” but the tutorial deliberately sticks to `println()` throughout for readability, treating `print()` as a rarely-needed variant. [S1] ## 🧠 핡심 κ°œλ… (Core concepts) - **`println()`** β€” prints text/values, adding a newline after each call. [S1] - **Double quotes required** β€” text must be wrapped in `""`; omitting them is a compile error. [S1] - **`print()`** β€” same as `println()` but does NOT add a trailing newline. [S1] ## πŸ“– μ„ΈλΆ€ λ‚΄μš© (Details) - Multiple println calls: `System.out.println("Hello World!"); System.out.println("I am learning Java.");` β€” each on its own line. [S1] - print() without newline: `System.out.print("Hello World! "); System.out.print("I will print on the same line.");`. [S1] ## βš–οΈ λͺ¨μˆœ 및 μ—…λ°μ΄νŠΈ (Contradictions & updates) μ†ŒμŠ€μ—μ„œ λͺ¨μˆœλ˜λŠ” μ •λ³΄λŠ” λ°œκ²¬λ˜μ§€ μ•ŠμŒ. ## πŸ› οΈ 적용 사둀 (Applied in summary) ν˜„μž¬ 발견된 μ‹€μ œ 적용 사둀가 μ—†μŠ΅λ‹ˆλ‹€ β€” 이 νŠœν† λ¦¬μ–Ό μ „μ²΄μ—μ„œ println()만 μΌκ΄€λ˜κ²Œ μ‚¬μš©ν•œλ‹€κ³  λͺ…μ‹œλ¨. [S1] ## πŸ’» μ½”λ“œ νŒ¨ν„΄ (Code patterns) print() without a trailing newline (Java): ```java System.out.print("Hello World! "); System.out.print("I will print on the same line."); ``` ## βœ… 검증 μƒνƒœ 및 신뒰도 - **μƒνƒœ:** draft - **검증 단계:** conceptual - **좜처 신뒰도:** B (W3Schools β€” widely used educational reference, not a primary standards body) - **μ‹ λ’° 점수:** 0.90 - **쀑볡 검사 κ²°κ³Ό:** μ‹ κ·œ 생성 (New discovery) ## πŸ”— 지식 κ·Έλž˜ν”„ (Knowledge Graph) - **μƒμœ„/루트:** [[Java Tutorial]] - **κ΄€λ ¨ κ°œλ…:** [[Java Print Numbers]], [[Java Strings]] - **μ°Έμ‘° λ§₯락:** ν…μŠ€νŠΈ 좜λ ₯의 κΈ°λ³Έ β€” 숫자 좜λ ₯은 λ‹€μŒ μ±•ν„°λ‘œ 이어진닀. ## πŸ“š 좜처 (Sources) - [S1] W3Schools β€” Java Output / Print β€” https://www.w3schools.com/java/java_output.asp ## πŸ“ λ³€κ²½ 이λ ₯ (Change history) - 2026-07-04: Initial draft synthesized from the W3Schools "Java Output / Print" page (Astra wiki-curation, P-Reinforce v3.1 format).