Parameter Mystery

Category: Parameter Mystery
Author: Stuart Reges
Book Chapter: 3.1
Problem: Parameter Mystery
public class Mystery {
	public static void main(String[] args) {
		String one = "student";
		String two = "beer";
		String three = "dorm";
		int number = 12;
		
		Sentence(two, one, number);
		Sentence(three, two, 125);
		Sentence(three, one, 250);
		Sentence(one, two, 4);
		Sentence("classroom", one, 2 * number);
	}
	
	public static void Sentence(String one, String two, int number) {
		System.out.println(two + "s in the " + one + " = " + number);
	}
}


	List below the output produced by this program. 
1) Sentence(two, one, number);
2) Sentence(three, two, 125);
3) Sentence(three, one, 250);
4) Sentence(one, two, 4);
5) Sentence("classroom", one, 2 * number);