working but not working ... :/
package fr.codegym.task.task07.task0717;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
/*
Duplication de mots
*/
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader lecteur = new BufferedReader(new InputStreamReader(System.in));
ArrayList<String> liste = new ArrayList<String>();
for (int i = 0 ; i <10; i++)
{
String a = lecteur.readLine();
liste.add(a);
}
ArrayList<String> resultat = dupliquerValeurs(liste);
// Display result
}
public static ArrayList<String> dupliquerValeurs(ArrayList<String> liste) {
for (int i = 0 ; i <liste.size(); i++) {
System.out.println(liste.get(i) + " " + "," + liste.get(i));
}
return null;
}
}