Hey guys so im new to java and im trying to write a program that declares two strings First && Last name ( both under case ) And i need to use the .uppercase to convert the first letter in both the first name and last name from lower case to uppercase.
Example convert jon to Jon
This is what i have so far I really dont understand how i make the first letter uppercase.
/////
public class firstProgram {
public static void main(String args[])
{
//NAME GOES HERE. DECLARED 2 STRINGS
String first = "firstname";
String last = "lastname";
//PRINT OUT STRINGS
System.out.println(first);
System.out.println(last);
}
}