So my program requires me to test for the greek letter delta. I've found the unicode value \u0394 that translates to δ. But the statement does not run, meaning it does not read the delta. Here getXunit returns the String value of the Unit, which should be delta, but when printed it returns ?.
if(getSpectrum().getXUnit().equals("\u03B4"){
//do stuff
}
How would I accomplish this?