Java tutorial
//package com.java2s; public class Main { private static String generateBrand() { Long result = Math.round(Math.random() * 2); switch (result.intValue()) { case 0: return "Heineken"; case 1: return "Grimbergen"; case 2: return "Kriek"; default: break; } return null; } }