Not a statement

1 resposta
S

Ola, estou novamente pedindo uma ajuda de novato. No exercicio abaixo tenho um erro na linha indicada em negrito…alguem poderia me ajudar?O erro é ‘Not a statment’, illegal chatacter’…Li em algum lugar que tenho que tornar a expressao um comando do tipo: for this…do that…
obrigado[/code]

import <a href="http://java.io">java.io</a>.*;

public class rot13input {

public static void main(String[] args) throws IOExceptition {

BufferedReader in = new BufferedReader( new InputStreamReader(System.in));

for(;<img src="https://cdn.jsdelivr.net/gh/twitter/twemoji@14/assets/72x72/w.pngink.png?v=9" title=":wink:" class="emoji" alt=":wink:"> {

System.out.print("> ");

String line = in.readLine();

if(( line == null) || line.equals(“quit”))

break;

StringBuffer buf = newStringBuffer(line);

 for(int i = 0; i < buf.length(); i÷÷) 

buf.setCharAt(i, rot13(buf.charAt(i)));
System.out.println(buf);
}
}

}
[/b][b]

1 Resposta

peczenyj

provavelmente vc deveria fazer i++ (i mais mais) e não i÷÷ (i dividido dividido)

Criado 14 de agosto de 2008
Ultima resposta 14 de ago. de 2008
Respostas 1
Participantes 2