~cpp
import javax.swing.*;
public class HumanBeing
{
private String name;
private int statue;
public HumanBeing()
{
name = JOptionPane.showInputDialog(" 력");
}
public void my_name_is()
{
System.out.println(name);
}
public void take_a_rest()
{
statue = 1;
}
public void study()
{
statue = 2;
}
public void my_statue()
{
if (statue == 1)
JOptionPane.showMessageDialog(null, "I am taking a rest =.=;");
if (statue == 2)
JOptionPane.showMessageDialog(null, "I am studying T.T");
}
public static void main(String [] args)
{
HumanBeing Lee = new HumanBeing();
Lee.my_name_is();
Lee.take_a_rest();
Lee.my_statue();
}
}
명
나 변
명
때 mynameis같
면 나
보
나 딴
람
보
때
기가
들
myNameIs나 my_name_is
럼 각 단
끼리 구
는
관
갖는 것
다고
각
다. --
강경
,
만 보고 04
'김
'라고
각
고 반말
. --
강경