// Ayaz Latif // 07/06/2020 // CSE 142 // TA: Grace Hopper // String parameter lecture example // Prints out congrats message to various F1 drivers /* DEVELOPMENT NOTES: ((Note: this is not something you should include in your own programs; this is included here to aid in your understanding and to provide additional context for the program.)) We can make parameters of any type, including Strings! Also remember that when calling a method that accepts a parameter of a certain type, we can pass in any expression that *evaluates* to that type! Below, we make a String variable storing "Bottas", and can use that variable name when calling sayCongrats, because the value stored in that variable is of type String! */ public class Congrats { public static void main(String[] args) { String bot = "Bottas"; sayCongrats(bot); sayCongrats("Leclerc"); sayCongrats("Norris"); } // Prints out congratulations to a F1 driver with given name // String name: the name of the person being congratulated public static void sayCongrats(String name) { System.out.println("Hello " + name + ", congrats on making podium!"); } }