05-21 17:13
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- 리눅스
- Operator
- systemd
- Entity Set
- Binary Search
- Reference Type
- Inheritance
- 리눅스 마스터 1급
- OOP
- Class
- 백준
- Java
- X.org
- External Scheme
- preprocessing
- descriptive statistics
- spring
- X윈도우
- Mac
- 자바
- literal
- selenium
- 셀레니움
- BFS
- Entity
- Physical Scheme
- Unity
- Polymolphism
- dbms
- python
Archives
- Today
- Total
목록가변인자 (1)
Byeol Lo
가변인자
자바에서는 수많은 인자들을 받도록 하게 하는 기능을 제공하는데 바로 가변인자이다. public class HelloWorld { void printing(String...words) { System.out.println("Start Print"); for(String s : words) { System.out.println(s); } } public static void main(String args[]) { HelloWorld hello = new HelloWorld(); hello.printing("hi", "my", "name", "is", "hello"); } }
Programming Language/Java
2022. 8. 30. 06:15