import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.text.DecimalFormat;
import javax.swing.event.*;
public class japanese extends JApplet {
public void init() {
JTextArea outputArea;
outputArea = new JTextArea(2,10);
String output = ("");
JOptionPane.showMessageDialog(null,"uchi or ie ","house",
JOptionPane.INFORMATION_MESSAGE);
String house = JOptionPane.showInputDialog("enter the japanese word for " +
"house");
String h = new String("uchi");
String h1 = new String("ie");
output = ("good");
outputArea.setText(output);
if (house == h || house == h1)
JOptionPane.showMessageDialog(null,outputArea,"hou se",
JOptionPane.INFORMATION_MESSAGE);
else
JOptionPane.showMessageDialog(null,"not good","house",
JOptionPane.INFORMATION_MESSAGE);
}
}