What is the output of the following program?
public class MysteryProgram { public static void mystery(String foo, String bar, String zazz) { System.out.println(zazz + " and " + foo + " like " + bar); } public static void main(String[] args) { String foo = "peanuts"; String bar = "foo"; mystery(bar, foo, "John"); } }
Answers
Answered by
2
hString bar for mystery bar for john
Similar questions