Question: We have the following program called FillInTheBlank We have a big print statement that will print out a message based on the variables values. But
We have the following program called FillInTheBlank
![public class FillInTheBlank { } public static void main(String[] args) { }](https://dsd5zvtm8ll6.cloudfront.net/images/question_images/1706/1/8/9/13765b261515d6b31706189134886.jpg)
We have a big print statement that will print out a message based on the variables’ values. But this program will fail to run because we haven’t initialized our variables yet.
Initialize the values of each variable based on the names. If it’s a noun, then initialize with a noun; if it’s a verb, then assign a verb. After initializing all the variables, see what the program will print.
public class FillInTheBlank { } public static void main(String[] args) { } String name; String noun1; String placeNoun; String adj1; String adj2; String adj3; String verb1; really verb1 and my System.out.println("Hi! My name is + name + and I like this " + adj1 +""+noun1 + " that I get to +" with. I always have it with me in case I need it, friends who are " + adj2" and " + adj3 + " like to " verb1" with me as well. I usually go to " during lunch time, so I can't have the " + noun1 + " with me at that time, but other times, it's not a big deal."); + " + placeNoun "1 "
Step by Step Solution
3.35 Rating (155 Votes )
There are 3 Steps involved in it
program with initialized values for each variable based on their types java public class FillInTheBl... View full answer
Get step-by-step solutions from verified subject matter experts
