King_Weaver
Gawd
- Joined
- Nov 26, 2006
- Messages
- 620
Ok so I have a java hw assignment due friday. Im still a real noob with this stuff so I hope you guys can help me out. Basically I have to create a program that prompts (from the command line) the user to input the temperature and based on the temperature it tells you the probable season. So far im stuck at getting the program to prompt the user....I get an "<identifier> expected" error on System.out.print( "Please input the temperature:" ); ....Also Im not sure how to change the string into an int variable...heres what ive got
import java.io.*;
public class Project3Problem50Page271 {
public static void Project3Problem50Page271( String[] args ) throws IOException {
}
private static BufferedReader stdin =
new BufferedReader( new InputStreamReader( System.in ) );
System.out.print("Please input the temperature:");
String temp = stdin.readLine();
}
import java.io.*;
public class Project3Problem50Page271 {
public static void Project3Problem50Page271( String[] args ) throws IOException {
}
private static BufferedReader stdin =
new BufferedReader( new InputStreamReader( System.in ) );
System.out.print("Please input the temperature:");
String temp = stdin.readLine();
}