this line of code is messing with me,
String[] parseEmailDomain = parseEmail[1].split(".");
When i do System.out.println(parseEmailDomain.length)
the size of the array ends up being 0 BUT the output of System.out.println(parseEmail[1])
is
cs.uh.edu
anyone have any idea as to why when I try to split the array, it doesn't split it but when I try to just output the array it outputs perfectly fine?
I am able to do this
String[] parseEmail = parseLn[i].split("@");
the out put of System.out.println(parseEmail[0]);
is hanak
and parseLn is an entire line from a text file