I am a new learner and today I take the Java 1 Clean Coding: episode 3 Creating Methods. I write the exact the same code in the video, but it shows error in the last return line of firstName and lastName. The error says parameter firstName and lastName never used.
public class Practice {
public static void practice (String[] args) {
Thx, yes I change it in curly braces. Now it only shows error firstName in the last return line as" can not resolve symbol firstName. The lastName has no error .
public class Practice {
public static void practice(String[] args) {