In the constructor, you need to declare the array before you put things in it. You also can't say String[] number = newnumber
because number is a String[]
and newnumber is a String
. equals()
and toString()
need to return something. And, to answer your question, just say
private String decode(char c){