Sie sind auf Seite 1von 1

// Loop until an S is typed.

class ForTest {
public static void main(String args[]) throws java.io.IOException {
int i;
System.out.println("Press S to stop.");
for(i = 0; (char) System.in.read() != 'S'; i++)
System.out.println("Pass #" + i);
]
}

Das könnte Ihnen auch gefallen