Skip to content

Instantly share code, notes, and snippets.

@Dev-HyunSang
Created March 20, 2020 07:26
Show Gist options
  • Save Dev-HyunSang/ee56d0e82d01b17d83a2c7ce0911670f to your computer and use it in GitHub Desktop.
Save Dev-HyunSang/ee56d0e82d01b17d83a2c7ce0911670f to your computer and use it in GitHub Desktop.
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"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment