This is the C# code that I have to convert:
static readonly IEnumerable<char> BigAlphas = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".ToCharArray();
So far I’ve tried the following:
static final Iterable<Character> BigAlphas = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".toCharArray();
This gives me the error:
incompatible types
required: java.lang.Iterable
found: char[]
I know I’m getting this error because I’m trying to set an Iterable<Character> to a char array but I’m not sure what else can be done to translate it.
Would a simple String work?
String implements CharSequence, which seems to be what you need, and it also has loads of methods to check membership and such.