In this method the symbol value can be anything Stock Symbol like (For example GOOG , C , DAC-----etc)
private boolean isC(String symbol) {
char code = symbol.charAt(symbol.length() - 2);
return code <= 'L';
}
Could anybody please let me know what does this return type mean exactly ??
I am confused because i was thinking of a return type to be either true
or false
, but could anybody please let me know what does this 'L'
mean exactly ??
Thanks in advance .
code <= 'L'
. Java chars are comparable.