I need to write a program that reads the first name and last name from the user as two seperate inputs and concantenates the first name and a last name seperated by a space. Displasy in a message dialogue the concantenated name? Can anyone please help me on this one. Any help is greatly appreciated!!! Thank You~
From the error you said you were getting, I would guess that you are either trying to use the code example outside of a class definition or that you have a missing and/or extra "{" or "}" somewhere. The try-catch construct must be inside of a method definition that is inside of a class definition - the framework for which is in my previous post. If you are still having difficulties getting the code snippet from Manfred to compile and run, if you were to post exactly what you are trying, I'm sure someone will help point out any mistakes. Good Luck.