import java.util.Scanner;
/*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;
}
}
public class Main {
public static void main(String[] args) {
Book prince = new Book("어린왕자", "생텍쥐페리");
Book love = new Book("춘향전");
Book emptyBook = new Book();
love.show();
}
}
class Samp {
int id;
public void Samp(int x) {
this.id = x;
}
public void Samp() {
System.out.println("생성자 호출");
this(0);
}
}
class TV {
String a;
int b;
int c;
TV(String a1,int b1,int c1){
a=a1;
b=b1;
c=c1;
}
void show() {
System.out.println(a+"에서 만든"+b+"년형"+c+"인치 TV");
}
}
public class Main{
public static void main(String[] args) {
TV myTV = new TV("LG", 2017 , 32);
myTV.show();
}
}*/
/*
class pun{
private int a;
int b;
int c;
pun(int a2,int b2 ,int c2){
a=a2;
b=b2;
c=c2;
}
int close() {
return (a+b+c)/3;
}
void set_a(int a)
{
this.a = a;
}
void viewa()
{
System.out.println(a);
}
}
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print("수 과 미 순으로 3개 입력 >>>");
int math = sc.nextInt();
int science = sc.nextInt();
int art = sc.nextInt();
pun me = new pun(math, science, art);
//me.a=10;
me.set_a(10);
me.viewa();
//System.out.println(me.a);
System.out.println("평균은"+me.close());
}
}*/