All pastes #421230 Raw Edit

Someone

public java v1 · immutable
·published 2007-04-02 18:35 UTC
rendered paste body
import javax.swing.*;public class Conversions {	public static void main(String args[]) {		String temp1, feet1;		double resultfeet;				temp1 = JOptionPane.showInputDialog(null, "Input either \"meter\" or \"feet\"");		if(temp1=="feet") {			feet1 = JOptionPane.showInputDialog(null, "How many feet would you like to convert to meters?");			resultfeet = feet1 * 3.305;			JOptionPane.showMessageDialog(null, "");		}		if(temp1=="meter") {			JOptionPane.showInputDialog(null, "How many meters would you like to convert to feet?");							System.exit(0);	}}