How do I get all the numbers within a range JAVA? -
i have database field called numberrange not primary key.
now in java, how numbers in range 101000001 - 10100050?
i want display display, 10100001, 101000002, 101000003, 101000004, ... 10100050.
i appreciate if me out here, struggling @ moment.
edit, database looks this
stockid|stockname|stockprice|stocklevels
1 | water| £0.50 | 101000001 - 10100050
java 8 officially out.
return intstream.rangeclosed(101000001, 10100050);
Comments
Post a Comment