// Description: This program gets a string from a dialog box.
// File: dialogInputOutput/ThirdProgram.java
// Author: Michael Maus
// Date: 29 Jan 2005
import javax.swing.*;
public class temp {
public static void main(String[] args) {
String temp; // A local variable to hold the name.
Object conversion = (5.0 / 9.0) (temp - 32);
temp = JOptionPane.showInputDialog(null, "enter a Temperature Here");
JOptionPane.showMessageDialog(null, "The Temperature you entered of, " + temp \n "Celsius" + conversion);
}
}
I need help with this code not sure what I am doing wrong. Any help would be greatly appreciated.
This post has been edited by g00se: 14 November 2010 - 08:36 AM

New Topic/Question
Reply




MultiQuote







|