Im looking at some Java code. Im no Java expert.
There is a for loop that has this syntax;
for (;;)
{
//Do some stuff
}
What does this achieve? Surely it doesn't loop (ie it just runs the code once)?
![]() ![]() |
Behodar: I don't know any Java, but at a glance it looks like it just calls the two "send" methods then leaves the loop... so why have a loop at all? *confused*
tchart: The code is very odd.
for (;;)
{
sendCommandToRemote(9, str2);
sendPureDatToRemote(str1.getBytes());
return;
str1 = "-1";
int i = str1.length();
str2 = "bnsrv_alarm mtk_bnapk -1 0 " + String.valueOf(i) + " ";
}
![]() ![]() |