Question: public class Utils { / * - - - - - - - - - - - - - - - - - - -
public class Utils
Modify the method below.
The method below, myMethod, will be called from a testing function in VPL
Write one line of Java code inside the method that adds one String
to another. It will look something like this:
Assume that
String theInput is George
String myString is Hello, my name is
We want to update myString so that it is
Hello, my name is George
public static String myMethodString theInput
System.out.printlnThis method combines two strings.";
String myString "Hello, my name is ;
Update the "myString" object.
Do this by "adding" myString and theInput together.
How do you add two Strings together? Use the "plus" sign, like this:
firstString firstString secondString
myString myString theInput; update this!!!!!!!
System.out.printlnwe combined two strings to make myString;
return myString;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
