Java Help Please
Go to solution
Solved by jslowik,
Additionally you're never printing the value from that method. Your print line should be similar to:
System.out.println(SecondClassObject.simpleMessage(name));
And just for giggles, writing your second class like the following is a few less keystrokes:
public String simpleMessage(String name){ //this is taking the varible sent from the call method name += " Is a god"; return name; }

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now