i need some help in reading keyboard input.
i've got this so far:
int i;
int count;
System.out.println("Enter a number: \n");
//this is where the scan is ment to be
if((count<0 || count count >50
System.out.println("error.");
else
{
for(i=0;i<count;i++);
{
System.out.println("count is:") //how do i call the value of the i int the print?
}
}
also would a switch case statement work the same as in c?
thanks in advance
pindo


Sign In
Create Account


Back to top









