ich möchte aus einer ArrayList den String ausgeben, der die meisten Buchstaben hat.
Code (Text):
package level07.lesson06.task0201;
import java.util.*;
/* The longest string
1. Create an ArrayList of the strings.
2. Read 5 strings from the keyboard and add them into ArrayList
3. Using for-each cycle find the maximum lenght of all strings in this ArrayList
4. Print out all the strings that have maximum length
*/
public class Solution {
public static void main(String[] args) throws...
import java.util.*;
/* The longest string
1. Create an ArrayList of the strings.
2. Read 5 strings from the keyboard and add them into ArrayList
3. Using for-each cycle find the maximum lenght of all strings in this ArrayList
4. Print out all the strings that have maximum length
*/
public class Solution {
public static void main(String[] args) throws...
ArrayList- größten String printen