I want to create logic such that: if s2 is null the debugger skips all the complex string manipulation and returns null instead of s1 + s2 + s3 as seen in the first if block. Am I wrong somewhere?
public static String helloWorld(String s1, String s2, String s3){
if(s2==null){
continue;
return null;
}
... lots of string manipulation involving s1, s2 and s3.
return (s1+s2+s3);
}
don’t use continue there, continue is for loops, like
just do: