String Manipulation. HELP!

Hi, my name is Mat and I'm new to the Java language. I recently started a programming class that focuses on Java. I'm stuck on one of the my assignments. The assignment seems fairly simple but I seem to be stuck. Here is the assignment:
"Write a Java program that reads a patient


  • try this :
    sentence = firstName.substring(0,1) + lastName.substring(0,1) + age.toString();
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion