일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- #JAVASCRIPT
- html multimedia
- #C++ 연산자함수오버로딩
- #binary
- #CallByAddress
- html charset
- html id
- 토큰경제
- html youtube
- #성적관리프로그램
- html5 new tag
- #C++ has~a
- hyperledger transaction
- html code
- docker example
- #android activity
- relative path
- #3차원배열
- html video
- mac terminal command
- #다차원포인터
- #2차원배열
- 하이퍼레저패브릭
- html object
- #bubbleSort
- html plug-in
- border-box
- #1차원배열
- #자바상속#자바이즈어#is~a
- git flow
Archives
- Today
- Total
목록#string#문자열 (1)
A sentimental robot
String class
import java.util.Scanner; public class Hello { public static void main(String[] args) { Scanner sc=new Scanner(System.in); String str=new String(); // 문자열 클래스는 레퍼런스타입이므로 동적할당으로(힙 영역에) 객체 생성해준다. str=sc.next(); System.out.println(str); } } public class Hello { public static void main(String[] args) { String str=new String("superman"); // 문자열객체 생성과 동시에 초기화 , 처음부터 값 넣기 System.out.println(str); } }..
Java
2017. 12. 28. 11:27