The aim of my method is to do many things at once. Here is my code so far:
public static String isCode(String code) {
code= "GUG";
if (otherMethod(code.charAt(0)) && otherMethod(code.charAt(1)) && otherMethod(code.charAt(2)))
return ;
}
}
how do I then make my isCode
method return my characters as something else through another previously made method. For example if I had a method converting one character to another, how do I write a code that will make this happen. I tried writing myOtherMethod(code.charAt(0)
, but how do I do this more than once to return all three values I'm looking for?