can anyone help me out?
while(true)
{
System.out.println("Enter number of input values");
int number=Integer.parseInt(reader.nextLine());
System.out.println("Start inputting the values");
double value=Double.parseDouble(reader.nextLine());
if(value>=-30&&value<=40)
{
for(int i=0;i<=number;i++){
Graph.addNumber(value);
}
break;}
}
where's the mistake?
What's up with the for loop?
I'm pretty sure it shouldn't be there. Just add the number user typed in if it passes the criteria (the checks in the if statements.
Also you've found your way to our deprecated system; you'll have better luck gettiing prompt responses from our IRC channel and GoogleGroups
http://mooc.fi/courses/general/programming/irc-guide.html http://mooc.fi/courses/general/programming/google-groups.html