일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- math
- c#
- numpy
- list
- django
- Google Spreadsheet
- 파이썬
- PANDAS
- Java
- string
- Github
- Google Excel
- array
- google apps script
- matplotlib
- Excel
- Mac
- gas
- Python
- GIT
- Redshift
- PostgreSQL
- SQL
- Tkinter
- dataframe
- hive
- PySpark
- Kotlin
- Apache
- Today
- Total
목록분류 전체보기 (832)
달나라 노트
class PeopleInfo { String name; String planet; public void setName(String name) { this.name = name; } public void setPlanet(String planet) { this.planet = planet; } public void introduce() { System.out.println("Hello. I'm " + this.name + ". I live in " + this.planet + "."); } public void introduce(int x) { System.out.println("Hello. I'm " + this.name + ". I live in " + this.planet + ". And I'm "..
public class James extends People { public void introduce() { System.out.println("Hello. I am " + this.name + "." + "I live in " + this.planet + "."); } public static void main(String args[]) { James james = new James(); james.setName("James"); System.out.println(james.name); System.out.println(james.planet); james.introduce(); } } -- Result James Earth Hello. I am James.I live in Earth. Java cl..
public class JavaList { public static void main(String args[]) { ArrayList arr_list = new ArrayList(); arr_list.add("one"); arr_list.add("two"); arr_list.add("three"); System.out.println(arr_list); System.out.println(arr_list.get(0)); System.out.println(arr_list.get(1)); System.out.println(arr_list.get(2)); // System.out.println(arr_list.get(3)); // index=3은 없으므로 error 발생 // remove를 이용하여 list의 요..
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..