Professional Documents
Culture Documents
JOptionPane;
public class Relasyon{
JOptionPane.showMessageDialog(null,podique.getName() + "\n" +
podique.getAge() + "\n" + podique.getHeight() + "\n" + podique.getWaistSize() +
"\n" + podique.getChestSize());
while(true){
switch(choice){
case 1:
double taba = Double.parseDouble(JOptionPane.showInputDialog("Enter
how many tons of lechons?"));
podique.setWaistSize(podique.getWaistSize()+(taba*0.3));
if (podique.getWaistSize()>40)
JOptionPane.showMessageDialog(null, "Break na sila ni Delizo");
break;
}
JOptionPane.showMessageDialog(null, delizo.getName() + "\n" +
delizo.getAge() + "\n" + delizo.getHeight());
JOptionPane.showMessageDialog(null,podique.getName() + "\n" +
podique.getAge() + "\n" + podique.getHeight() + "\n" + podique.getWaistSize() +
"\n" + podique.getChestSize());
}
}
}