Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a single statement that will print the message first is followed by the value of first , and then a space, followed by
Write a single statement that will print the message "first is " followed by the value of first, and then a space, followed by "second = ", followed by the value of second. Print everything on one line and go to a new line after printing. Assume that first has already been declared as a double and that second has been declared as an int. Assume also that the variables have already been given values.
i have the answer as
System.out.printIn("first is " + first + " second = + " ");
its not woring which is suppose to work
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started