does anyone know how to fix the problem here;(it says 'Public void input(int)' that line has a problem?
/**
* Write a description of class randommizer here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class temperature
{
private int input;
/**
* create input and response for user
*/
public temperature()
{
// do nothing
}
Public void input(int)
{
if(0 < 20) {
system.out.printIn("wear some shorts and sandals")
}
else {
system.out.printIn("please insert only numbers,ranging from -40 to 75")
}
}
does anyone know how to fix the problem here;(it says 'Public void input(int)' that line has a problem?
/**
* Write a description of class randommizer here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class temperature
{
private int input;
/**
* create input and response for user
*/
public temperature()
{
// do nothing
}
Public void input(int)
{
if(0 < 20) {
system.out.printIn("wear some shorts and sandals")
}
else {
system.out.printIn("please insert only numbers,ranging from -40 to 75")
}
}
}
I'm no profesional here but it looks like you may be missing a bit.... uh... what is this gonna do anyways?
Anything you want it to be - it's just a variable name. You need to brush up a bit on basic Java syntax and structure a bit more if you expect to get anywhere at all with this.
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.