M
M
Maxim Spiridonov2015-04-12 10:37:31
Java
Maxim Spiridonov, 2015-04-12 10:37:31

Where is the error in the for loop?

Complains about my cycle, they say not a statement for.

for (; (line = br.readLine()) != null; i < j)
      {
        String[] commands = decode(line).split(";");
        if ((!line.contains("")) || (!line.contains("Auth_error"))) {
          Log.Write(line);
        }
        String[] arrayOfString1;
        j = (arrayOfString1 = commands).length;i = 0; continue;String com = arrayOfString1[i];
        if (com != null) {
          Bukkit.dispatchCommand(Bukkit.getConsoleSender(), com);
        }
        i++;
      }

What is the actual error, I spend a lot of time with it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
IceJOKER, 2015-04-12
@IceJOKER

for (; (line = br.readLine()) != null, i < j; )//try this way
and it's better to do the increment not in the body of the for loop, but in the condition

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question