OP_ADD operation in bitcoin script for integers greater than 128 in java
you should use Litte-endian encoding. if the highest bit is set (range 128-255, 32768-65535 and so on) you should append the zero byte to mark these bytes as positive number.

So, 150(dec) will be encoded as 9600

270(dec) will be encoded as 0e01