Skip to content

Les methodes

Lucas edited this page Jan 30, 2019 · 6 revisions
          Les méthodes 
  • Math.random : génerer un nombre aléatoire

    int nb1 = (int) Math.floor(Math.random()* 1001)

  • length() : trouver la longueur

  • substring() : enlever un element

  • Scanner() : scanner

  • indexOf() : aller à l'index

  • toUpperCase() / toLowerCase : Mettre un majuscule / en minuscule

Clone this wiki locally