Skip to content

Instantly share code, notes, and snippets.

@Dev-HyunSang
Created March 20, 2020 07:26
Show Gist options
  • Save Dev-HyunSang/497f94d742e5ce4fcc4dd41f77d95881 to your computer and use it in GitHub Desktop.
Save Dev-HyunSang/497f94d742e5ce4fcc4dd41f77d95881 to your computer and use it in GitHub Desktop.

Revisions

  1. Park Hyun Sang created this gist Mar 20, 2020.
    15 changes: 15 additions & 0 deletions String_App.java
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    package com.company;

    public class String_App {

    public static void main(String[] args) {
    System.out.println("Heelo World"); // String 문자가 모여 있는 것.
    System.out.println('H'); //Character

    System.out.println("Hello" + "World"); // 문자열끼리 더해 준다.
    // new line
    System.out.println("Hello \n World"); // \n 줄 바꿈
    //escape
    System.out.println("Hello \"world\""); // Hello ""World"
    }
    }