This commit is contained in:
Johannes Theiner 2018-04-12 14:42:11 +02:00
parent a313547060
commit fcdeabe55f

View File

@ -1,22 +1,19 @@
package de.joethei.hs.java2.praktikum.praktikum2;
import com.sun.istack.internal.NotNull;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.logging.Logger;
public class CharCollection implements Cloneable{
private List<Character> list = new ArrayList<>();
public CharCollection(@NotNull char... cc) {
public CharCollection(char... cc) {
for(char c:cc) this.list.add(c);
}
public CharCollection(@NotNull String s) {
public CharCollection(String s) {
for(char c : s.toCharArray()) {
this.list.add(c);
}