Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You kids and your fancy one liners:

import java.util.Random;

public class Maze {

public static void main(String[] args) {

		String[] blah = new String[] { "╱", "╲" };

		Random rng = new Random();

		for (;;) {
			System.out.print(blah[rng.nextInt(2)]);

		}
	}
}


Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: