mardi 30 décembre 2014

List all 4-digit integers in Java [on hold]

I need a program that stores all 4 digit numbers as Stings which has the following attributes:



  • 4 digits long

  • every number appears only once

  • there isn't 0 (only 1-9)


Actually I need something like this:



String[] s = {"1234","1235","1236,"1237","1238","1239","1245","1246",..,"9875","9876"}




Aucun commentaire:

Enregistrer un commentaire