| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- CNN
- AP Computer Science A
- BLaST
- 결정트리
- Kaggle
- 오류역전파
- 자바
- bioinformatics
- HMM
- 캐글
- 이항분포
- 인공지능
- AP
- Java
- 바이오인포매틱스
- SVM
- 바이오파이썬
- 인공신경망
- 생명정보학
- MERS
- 서열정렬
- 시그모이드
- RNN
- 블록체인
- 파이썬
- 딥러닝
- COVID
- 생물정보학
- 인공지능 수학
- ncbi
- Today
- Total
목록AP (7)
데이터 과학
AP Comsci. 를 준비하면서 가장 처음 만나게 되는 예제가 BankAccount 입니다. 교재에서는 아주 간단하게 나와 있는데, 프로그램 안에 있는 내용을 채우면 아래 예제와 같은 내용을 만들 수 있습니다. public class BankAccount{private String password;private double balance;public static final double OVERDRAWN_PENALTY = 20.00;//constructors/** Default constructor.* Constructs bank account with default values. */public BankAccount(){password = "";balance = 0.0;}public BankAcc..
생성자를 선언할 때 주의점이 있습니다. AP Com. A 시험에 간혹 나오는 문제입니다. 아래 예제는 https://tsyoon.tistory.com/113 에 있는 예제에 매개변수 없는 기본 객체를 선언한 예제입니다. class Box { private int width; private int height; private int depth; private int vol; public Box(int a, int b, int c) { // 클래스의 이름과 같은 이름으로 생성자 선언 width = a; height = b; depth = c; } public int volume() { vol = width * height * depth; return vol; } } public class BoxTestDem..
상속에 대한 예제입니다. 예제 1) 상속과 오버라이딩에 대한 예제입니다. 아래 예제는 이 컴파일러에서 실행하면 결과가 나옵니다. https://www.programiz.com/java-programming/online-compiler/ class Main { public static void walk() { System.out.println("Human walks"); } } class Boy extends Main{ public static void walk(){ System.out.println("Boy walks"); } public static void main(String[] args) { Main obj = new Boy(); Main obj2 = new Main(); obj.walk(); o..
생성자와 접근한정자 관련 예제입니다. 예제 1) public class Person { private String name; private int age; public Person(String aName, int anAge) { name = aName; age = anAge; } /** @return the String form of this person */ public String toString() { return name + " " + age; } public void printPerson() { System.out.println(this); } //Other variables and methods are not shown. public static void main(String arg..