fork(1) download
  1. class Whatever {
  2. public static void main(String[] args) {
  3. int number = 6;
  4.  
  5. for(int compare = 0; compare <= number; ++compare) {
  6. if (compare <= 2) {
  7. System.out.print("x");
  8. } else {
  9. System.out.print(compare);
  10. }
  11. }
  12. }
  13. }
Success #stdin #stdout 0.09s 54696KB
stdin
Standard input is empty
stdout
xxx3456