Microsoft
Software
Hardware
Network
Question : Beginner Java programming - Implementing a class
I am in an introductory Java programming class. This week we are learning about Classes and Methods. I will explain as best I can what I need in hopes that at the very least someone can tell me the name of what I am trying to accomplish.
First I need to print out a line of text //I've got this
Next, I need to prompt the user to enter the name of an item //got this too
Next, I need to print out the first line of text and concatenate the entered text //this part I've got
Then, I need to prompt the user to enter the name of another item //you guessed it, I can do this
Here is the part I can't figure out:
I need to print the initial text concatenated with the first entered text, then concatenate the second entered text
The first line of text is held in a String. I feel like it should go something like this(please forgive my lack of formatting):
String initText = "This is the initial text";
initText = initText + enteredText1;
initText = initText + enteredText2;
Can someone tell me what this process is called?
Answer : Beginner Java programming - Implementing a class
use String concatenate() method to append the text or use StringBuffer class
Random Solutions
How to have the DHCP exclude affect DHCP scope in VRF?
what's the right way of loading multiple images in Loader?
PIX 515E upgrade 6.35 To 7.24
mssql - I need to build multiple where conditions in a select statement using asp.net
Default SMTP IIS
How do I add to this script so that I can have another specified group of people be redirected to a different page?
how do I delete fake AV Security Suite permanetly?
SQL Agent Job Alert for Long Running Jobs
How do I combine the same methods used in 5 different Code behind files?
ISA 2006 STANDARD MIGRATE TO ISA 2006 ENTERPRISE