Have you read about java.util.Set?, take a look then refactor your code.
Type: Posts; User: eyp
Have you read about java.util.Set?, take a look then refactor your code.
You can do something like this... I think you don't need any String either a char[].
public static String getDigits( Character[] array ) {
if (array.length == 0) {
...
That won't compile, you're assigning a char[] to char.