Hey leute ich programmiere seit ungefair einem Jahr bukkit Plugins und mache heute mein erstes Clan Plugin aber habe drei fehler die ich net wegbekomme
hir:
for (String s1 : getAllUsers(getClan(p.getName()))) {
fehler: duplicate local variable s1
for (String s1 : getAllUsers(s.substring(6))) {
fehler: duplicate local variable s1
for (rank = getAllUsers(getClan(p.getName())).iterator(); rank.hasNext(); ) { s1 = (String)rank.next();
Fehler: Multiple markers at this line - Type mismatch: cannot convert from Iterator<String> to
String[]
- Cannot invoke next() on the array type String[]
- Cannot invoke hasNext() on the array type String[]
ich hoffe ihr könnt mir helfen
hir:
for (String s1 : getAllUsers(getClan(p.getName()))) {
fehler: duplicate local variable s1
for (String s1 : getAllUsers(s.substring(6))) {
fehler: duplicate local variable s1
for (rank = getAllUsers(getClan(p.getName())).iterator(); rank.hasNext(); ) { s1 = (String)rank.next();
Fehler: Multiple markers at this line - Type mismatch: cannot convert from Iterator<String> to
String[]
- Cannot invoke next() on the array type String[]
- Cannot invoke hasNext() on the array type String[]
ich hoffe ihr könnt mir helfen