/*
우리가
1년동안
뼈빠지도록
2틀은빠짐있이
6교시를 해왔는데
조기방학을 할줄알았더니 뭐?
한달동안 5교시?
장난하냐
조기방학 시켜달라
시켜달라! 시켜달라!
빼애애애액 해줘어어어어어어어어어어어어우어ㅜ어우어ㅜ어워어
//import java.util.*;
// class Book {
// String title;
// String author;
//
// void show() { System.out.println(title + " " + author); }
//
// public Book() {
// this("","");
// System.out.println("생성자 호출됨");
// }
//
// public Book(String title) {
// this(title, "작자미상");
// }
//
// public Book(String title, String author) {
// this.title = title;
// this.author = author;
// }
//}
//class Main{
// public static void main(String[] args) {
// Book littlePrince = new Book("어린왕자","생텍쥐페리");
// Book loveStory = new Book("춘향전");
// Book emptyBook = new Book();
// loveStory.show();
// emptyBook.show();
// }
//}
import java.util.*;
class Book {
String title;
String author;
void show() { System.out.println(title + " " + author); }
public Book(int title) {
this.title = Integer.toString(title);
author="no";
}
}
class Main{
public static void main(String[] args) {
Book[] arr = new Book[5];
for(int i=0;i<arr.length;i++) {
arr[i] = new Book(i);
}
arr[i].show();
}
}
*/
import java.util.*;
class Circle {
private double x, y;
private int radius;
public Circle(double x,double y,int radius) {
this.x=x;
this.y=y;
this.radius=radius;
}
public void show() {
System.out.println("("+x+","+y+")"+radius);
}
}
class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in) ;
Circle c [] = new Circle[3];
for(int i=0; i<c.length ; i++) {
System.out.print("x,y,radius >>");
double x=sc.nextDouble();//x 값이 읽기
double y=sc.nextDouble();//y 값이 읽기
int radius=sc.nextInt();//반지름 읽기
c[i] = new Circle(x,y,radius);
}
for(int i=0;i<c.length;i++) {
// 모든 Circle 객체 출력;
c[i].show();
}
sc.close();
}
}