Answers for "java trier liste ordre alphabétique"

0

trier par ordre alphabétique java

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class StringSorter {

	public static void main(String[] args) {
		List namesList = new ArrayList();
		namesList.add("Top language");
		namesList.add("Happy programming !");
		namesList.add("Java");
		namesList.add("HackTrack");
		Collections.sort(namesList);
		System.out.println(namesList);
Posted by: Guest on December-31-2020

Code answers related to "java trier liste ordre alphabétique"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language