✏️ 6장 실습문제 - 1package ex;import java.util.*;class MyPoint{ private int x,y; public MyPoint(int x, int y) { this.x = x; this.y = y; } public boolean equals(MyPoint p) { if(this.x==p.x && this.y==p.y) return true; else return false; } public String toString(){ String str = "point("+this.x+","+this.y+")"; return str;..
✏️ 5장 실습문제 - 1번 package ex;import java.util.Scanner;class TV{ private int size; public TV(int size) { this.size = size; } protected int getSize(){ return size; }}class ColorTV extends TV{ private int Color; public ColorTV(int size,int Color) { super(size); this.Color=Color; } public void printProperty() { System.out.println(getSize()+..
✏️ 4장 실습문제 - 1번 package ex;class TV{ String name; int year, inch; public TV(String name, int year, int inch){ this.name=name; this.year=year; this.inch=inch; } public void show(){ System.out.println(name+"에서 만든 "+year+"형 "+inch+"인치 TV"); }}public class SolveProblem { public static void main(String[] args) { TV myTV = new TV("LG",2017,32); ..
✏️ 3장 실습문제 - 1번 int sum = 0, i = 0;while (i (1) 무엇을 계산하는 코드이며 실행 결과 출력되는 내용은 ?// while 반복문에서 2의 등차수열의 합을 구하는 코드이며, 실행 결과 2450 출력된다.(2) 위의 코드를 main() 메소드로 만들고 WhileTest 클래스로 완성하라.public class WhileTest { public static void main(String[] args) { int sum = 0, i = 0; while (i ✏️ 3장 실습문제 - 2번package ex;public class SolveProblem { public static void main(String[] args) { int n[][] = {{1}..
- Total
- Today
- Yesterday
- HTML5
- 스프링 부트 crud 게시판 구현
- 우선순위 큐
- DP
- 세그먼트 트리
- java
- 스택
- 백준 풀이
- c++ string
- 자바스크립트
- 자료구조
- 자바
- 이분 매칭
- html
- 카운팅 정렬
- Do it!
- 알고리즘 공부
- 유클리드 호제법
- 유니온 파인드
- js
- C++ Stack
- BFS
- 반복문
- 에라토스테네스의 체
- C++
- 알고리즘
- 백준
- CSS
- DFS
- 투 포인터
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |