/*
import java.util.*;
public class Main
{
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
int a=sc.nextInt(),b=sc.nextInt();
int x=sc.nextInt(),y=sc.nextInt(),z=sc.nextInt();
int map[][]=new int[200][200],map1[][]=new int[200][200];
int i,j,k,t;
for(i=1;i<=a;i++)
{
for(j=1;j<=b;j++)
{
map[i][j]=sc.nextInt();
}
}
k=sc.nextInt();
for(t=1;t<=k;t++)// k세대
{
for(i=1;i<=a;i++)
{
for(j=1;j<=b;j++)
{
map1[i][j]=map[i+1][j]+map[i-1][j]+map[i][j+1]+map[i][j-1]+map[i+1][j+1]+map[i-1][j-1]+map[i+1][j-1]+map[i-1][j+1];
}
}
for(i=1;i<=a;i++)
{
for(j=1;j<=b;j++)
{
if(map1[i][j]==x)
{
map[i][j]=1;
}
if(map1[i][j]>=z||map1[i][j]<y)
{
map[i][j]=0;
}
}
}
}
for(i=1;i<=a;i++)
{
for(j=1;j<=b;j++)
{
System.out.print(map[i][j]+" ");
}
System.out.print("\n");
}
}
}
import java.util.*;
public class Main
{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
//기본자료형
// int a;
// float b;
// double c;
// char d;
// boolean e; //true or false
//문자 일차원배열 != 문자열
String str = "hello";
//문자열을 문자일차원배열로 변환
char arr[] = str.toCharArray();
//str=str+" world"; //문자열 붙이기
//System.out.println(str);
//System.out.println(arr[0]);
//System.out.println((char)(str.charAt(0)-32)); // not str[0]
String str1 = "hello1";
//if(str==str1) (x) 문자열끼리는 ==으로 비교 불가능!!!!
if(str.equals(str1)) {
// System.out.println("same");
}
else {
//System.out.println("not same");
}
//str.length()
String s = "hello,world hi,hello";
String sarr[] = s.split(" ");
for(int i=0;i<sarr.length;i++) {
System.out.println("sarr["+i+"] "+sarr[i]);
}
}
}
*/
/*
import java.util.*;
public class Main
{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String n = sc.next();
String m = sc.next();
if(n.length()>m.length())
{
System.out.println(m+" "+n);
}
else if(n.length()<m.length())
{
System.out.println(n+" "+m);
}
else
{
if(n.compareTo(m)==1)
{
System.out.println(m+" "+n);
}
else
{
System.out.println(n+" "+m);
}
}
}
}
*/
/*
import java.util.*;
public class Main
{
public static void main(String[] args) {
Scanner sc =new Scanner(System.in);
char a[]=(sc.next()).toCharArray();
char b[]=(sc.next()).toCharArray();
char c[]=(sc.next()).toCharArray();
int a1,b1,c1;
a1=a.length-1;
b1=b.length-1;
c1=c.length-1;
if(a[a1]==b[0]&&b[b1]==c[0]&&c[c1]==a[0])
{
System.out.println("good");
}
else
{
System.out.println("bad");
}
}
}
*/
/*
import java.util.*;
public class Main
{
public static void main(String[] args) {
Scanner sc =new Scanner(System.in);
char a[]=(sc.next()).toCharArray();
int i,sum=0,x=0;
for(i=0;i<a.length;i++)
{
x=a[i]-'0';
sum+=x;
}
if(sum%3==0)
{
System.out.println("1");
}
else
{
System.out.println("0");
}
}
}
클래스
클래스 : 틀 ( 붕어빵틀)
객체 : 물체
클래스 : 생성자(초깃값설정), 필드(변수생성), 메소드(함수)
*/
/*
import java.util.*;
class BBang{
int size ; //field
void change_size(int size1) {
size=size1;
}
void print_size() {
System.out.println("이 빵의 사이즈는 "+ size+"입니다");
}
}
class Main{
public static void main(String[] args) {
BBang a = new BBang(); //a객체생성
BBang b = new BBang();
// a.size=10; //a객체의 필드 접근
// b.size=40;
a.change_size(10); //a객체의 메소드 실행
a.print_size();
a.change_size(50);
a.print_size();
}
}
*/
/*
class Circle{
int r;
String n;
public double getArea() {
return r*r*3.14;
}
public void view() {
double area = getArea();
System.out.println(n+"의 면적은 "+area+"입니다.");
}
}
public class Main{
public static void main(String[] args) {
Circle donut;
donut = new Circle();
donut.r= 10;
donut.n= "자바도넛";
donut.view();
}
}
생성자 : 객체를 생성할때의 필드 초기값 설정
생성자의 이름은 클래스의 이름과 같다
생성자는 리턴타입이 없음.
*/
/*
import java.util.*;
class Rectangle{
//필드
int width;
int height;
//생성자
public Rectangle() {
width = 100;
height = 100;
}
public Rectangle(int width, int height) {
this.width = width;
this.height = height;
}
//메소드
public int getArea() {
return width*height;
}
}
public class Main{
public static void main(String[] args) {
Rectangle rect;
Scanner sc =new Scanner(System.in);
System.out.print(">> ");
int w =sc.nextInt();
int h =sc.nextInt();
rect = new Rectangle(w,h);
System.out.println("사가형의 면적은 "+rect.getArea());
sc.close();
}
}
*/
public class Main{
int r;
String name;
public Main() {
r=1;
name="";
}
public Main(int r,String n) {
this.r=r;
name =n;
}
public double getArea() {
return 3.14*r*r;
}
public static void main(String[] args) {
Main pizza = new Main(10,"자바피자");
double area = pizza.getArea();
System.out.println(pizza.name+"의 면적은 "+area+"입니다.");
Main donut = new Main(10,"자바도넛");
area = donut.getArea();
System.out.println(donut.name+"의 면적은 "+area+"입니다.");
}
}