Advertisement
Tecnelm

Untitled

Nov 12th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.39 KB | None | 0 0
  1. static ArrayList<String> afficherTous(String texte) {
  2.         ArrayList<String> texteTraduit = new ArrayList<String>();
  3.         String text= "";
  4.         int nb_charact = texte.length();
  5.         for(int ii =0 ; ii<=25 ; ii++)
  6.         {
  7.             for(int i = 0 ; i<nb_charact ; i++)
  8.             {
  9.              text+=(char)(texte.charAt(i)+ii);                   
  10.             }
  11.             texteTraduit.add(text);
  12.             text="";
  13.         }
  14.         return texteTraduit;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement