일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Google Spreadsheet
- Kotlin
- PostgreSQL
- numpy
- Excel
- matplotlib
- PANDAS
- Tkinter
- array
- hive
- Mac
- Redshift
- PySpark
- c#
- google apps script
- string
- list
- dataframe
- Google Excel
- 파이썬
- math
- django
- Java
- GIT
- Apache
- SQL
- Github
- Python
- gas
- Today
- Total
목록Parameter (2)
달나라 노트
class Increment { public void increment(int x) { x = x + 10; } } public class JavaClass { int x = 0; public static void main(String args[]) { JavaClass test = new JavaClass(); System.out.println(test.x); Increment inc = new Increment(); inc.increment(test.x); System.out.println(test.x); } } -- Result 0 0 위 코드에서 봐야 할 것은 2가지 입니다. 첫 번째. 하나의 파일에 2개의 class가 적혀있습니다. 이것은 가능합니다. 다만 public 키워드를 붙이는 class..
Original source = www.w3schools.com public class JavaMethodParameter { // method 생성 시 parameter를 전달하도록 만들 수 있습니다. // 아래 예시처럼 method name의 오른쪽 괄호 안에 parameter를 생성해주면 됩니다. // parameter는 콤마로 구분하여 몇개든 전달받을 수 있습니다. public static void testMethod(String name) { System.out.println("I am " + name); } public static void main(String args[]) { testMethod("James"); testMethod("Lisa"); } // 위 예시에서 parameter는 ..