fork download
  1.  
  2. class Test {
  3. static boolean printChar(char c) {
  4. System.out.print(c);
  5. return true;
  6. }
  7. public static void main( String[] argv ) {
  8. int i =0;
  9. for ( printChar('A'); printChar('B')&&(i<2); printChar('C')){
  10. i++ ;
  11. printChar('D');
  12. }
  13. }
  14. }
Success #stdin #stdout 0.09s 51288KB
stdin
Standard input is empty
stdout
ABDCBDCB