Add Java solution