KakaoTalk_20190606_001802318.png
  • 246x0w
Welcome
Curriculum
Install&Go
Board
실제 작동 상태를 확인하려면 라이브 사이트로 이동하세요.
  • 카테고리
  • 전체 게시물
  • 내 게시물
leejyjulia
2020년 7월 09일

200709

게시판: 소스 코드 제출

import java.util.Scanner;


//import java.util.Scanner;

//

//class Phone {

// private String name, tel;

// public Phone(String name, String tel) {

// this.name = name;

// this.tel = tel;

// }

// public String getName() {

// return name;

// }

// public String getTel() {

// return tel;

// }

//}

//

//public class Main {

// public static void main(String[] args) {

// Phone [] phone = new Phone[2];

//

// Scanner scanner = new Scanner(System.in);

// for (int i=0; i<phone.length; i++) {

// System.out.print("이름과 전화번호 입력>>");

// String name = scanner.next();

// String tel = scanner.next();

// phone[i] = new Phone(name,tel);

//

// }

//

// for (int i=0; i<phone.length;i++)

// System.out.println(phone[i].getName()+ "의 번호 " + phone[i].getTel());

// scanner.close();

// }

//}


//import java.util.Scanner;

//class Rect {

// private int w,h;

// public Rect(int w, int h) {

// this.w = w;

// this.h = h;

// }

// public int getArea() {

// return w*h;

// }

//}

//

//public class Main {

// public static void main(String[] args) {

// Rect [] rect = new Rect[4];

//

//

// Scanner scanner = new Scanner(System.in);

// for (int i=0; i<rect.length;i++) {

// System.out.print((i+1)+" 너비와 높이 >>");

// int w = scanner.nextInt();

// int h = scanner.nextInt();

// rect[i] = new Rect(w,h);

// }

//

// System.out.println("저장하였습니다...");

// System.out.print("사각형의 전체 합은 ");

// int sum = 0;

// for (int i=0; i<rect.length; i++) {

// System.out.print(rect[i].getArea());

// sum += rect[i].getArea();

// }

// System.out.println(sum);

// }

//}


//import java.util.Scanner;

//

//class Phone {

// String name,tel;

// public Phone (String name, String tel) {

// this.name = name;

// this.tel = tel;

// }

// public String getName() {

// return name;

// }

// public String getTel() {

// return tel;

// }

// public String tt(String name) {

// return (name+"의 번호는 " + tel + "입니다.");

// }

//}

//

//public class Main {

// public static void main(String[] args) {

// Scanner t = new Scanner(System.in);

//

// System.out.print("인원수>>");

// int n = t.nextInt();

// Phone [] phone = new Phone[n];

//

// Scanner scanner = new Scanner(System.in);

// for (int i=0; i<phone.length;i++) {

// System.out.print("이름과 전화번호(번호는 연속적으로 입력)>>");

// String name = scanner.next();

// String tel = scanner.next();

// phone [i] = new Phone(name,tel);

// }

//

// System.out.println("저장되었습니다...");

//

// for(;;) {

// System.out.print("검색할 이름>>");

// String name = scanner.next();

// if(name.equals("exit")) {

// System.out.print("프로그램을 종료합니다...");

// break;

// }

// boolean check = true;

// for (int i=0; i<phone.length; i++) {

// if (name.equals(phone[i].getName())) {

// System.out.println(phone[i].tt(name));

// check = false;

// break;

// }

// }

// if (check) {

// System.out.println(name+" 이 없습니다.");

// }

// }

// }

//}



//class Circle {

// private int radius;

// public Circle(int radius) {

// this.radius = radius;

// }

// public int getRadius() {

// return this.radius;

// }

// public void setRadius(int radius) {

// this.radius = radius;

// }

//}

//class CircleManager {

// static void copy(Circle src, Circle dest) {

// dest.setRadius(src.getRadius());

// }

// static boolean equals(Circle a, Circle b) {

// if (a.getRadius() == b.getRadius()) {

// return true;

// }

// else {

// return false;

// }

//

// }

//}

//

//public class Main {

// public static void main(String[] args) {

// Scanner t = new Scanner(System.in);

//

// Circle pizza = new Circle(5);

// Circle waffle = new Circle(1);

//

// boolean res = t.nextBoolean();

//

// if (res==true)

// System.out.println("pizza와 waffle 크기 같음");

// else

// System.out.println("pizza와 waffle 크기 다름");

//

// CircleManager.copy(pizza, waffle);

// res = (CircleManager.equals(pizza, waffle));

// if (res==true)

// System.out.println("pizza와 waffle 크기 같음");

// else

// System.out.println("pizza와 waffle 크기 다름");

// }

//}



댓글 0개
0
댓글
댓글 0개
유사 게시물
  • 200709
  • 200709
  • 200709
주소 : 경기도 용인시 광교중앙로 302 블루 스퀘어 602호
연락처 : 031) 216 - 1546
사업자등록번호 : 465-92-00916
​학원 등록 제 4603호