-->
0 Members and 1 Guest are viewing this topic.
@Hot_Dog: is there any chance the input number could be in hex rather than Decimal to make it match the chart?
/tmp/jc_16626/bmp28xp_awesum_version.java:168: ';' expected sum += initArray[i] + (initArray[i] < 0 ? 256 : 0)
Quote from: Qwerty.55 on March 26, 2011, 09:27:46 pm@Hot_Dog: is there any chance the input number could be in hex rather than Decimal to make it match the chart?Done. The compiler attached takes numbers as hex instead of decimal.I also optimized and cleaned some stuff up. You'll have to compile it though.EDIT: Rename it bmp28xp, of course.
Oh, apparently someone made an online Java compiler.It returns this error though:Code: [Select]/tmp/jc_16626/bmp28xp_awesum_version.java:168: ';' expected sum += initArray[i] + (initArray[i] < 0 ? 256 : 0)