Okay. So I added a return statement:
public String initials()
public String initials()
{
Char s = "firstName.charAt(0)" + "middleName.charAt (0)" + "lastName.charAt (0)";
return s;...
Type: Posts; User: gabgab96
Okay. So I added a return statement:
public String initials()
public String initials()
{
Char s = "firstName.charAt(0)" + "middleName.charAt (0)" + "lastName.charAt (0)";
return s;...
Yep. I put down another thread with the correct formatting. Sorry I'm new here. And I've only learned very basic java.
I'm trying to figure out why this program won't work. The requirements are that I am able to grab the initials from a full name and also the length. For the life of me I can't figure out why this...
I'm trying to code a program that returns the initials of a name and its length. However, in line 210 it gives me a "missing return statement" the code is below.
import java.io.*;
...