All pastes #729325 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-10-07 21:23 UTC
rendered paste body
package com.example.model;
import java.util.*;

public class BeerExpert {
	
	BeerExpert(){}
	
	public List getBrands(String color) {
		List brands = new ArrayList();
		if(color.equals("amber")){
			brands.add("Jack Amber");
			brands.add("Red Moose");
		}
		else {
			brands.add("Jail Pale Ale");
			brands.add("Gout Stout");
		}
		return(brands);
	}
	
}