I am writing a little code in J2ME. I have a class with a method setTableId(Short tableId). Now when I try to write setTableId(100) it gives compil
setTableId(Short tableId)
setTableId(100)
There is no such thing as a byte or short literal. You need to cast to short using (short)100
(short)100