im novice in java,i have condition with while and it work nice but i need using looping with for:this while condition for looping
String command = "";
while ((command = br.readLine())!=null && !command.isEmpty()) {
int b=0;
thisObj.perintah(b,command);
}
i have try write with for,i think similar like this but its not work
for (int b=0;b<command;b++)
{
String command = br.readLine();
thisObj.perintah(b,command);
}
did anyone know what i missing