Hallo,
habe nen fehler in meinem programm, der besagt "cannot converty from string to string [] " ?
wie bekomm ich das wieder richtig hin?
habe nen fehler in meinem programm, der besagt "cannot converty from string to string [] " ?
wie bekomm ich das wieder richtig hin?
Code:
package uniAdministration;
public class Employee extends Person implements EmployeeIF {
//Attribute
private String responsibilities = "abc";
private int roomNumber = 001;
//Konstruktor
public Employee (String name,String responsibilities, int room, int year) {
super (year, name);
this.responsibilities = responsibilities;
}
public String[] getResponsibilities(){
return responsibilities;
}
public void setResponsibilities(String[] responsibilities){
this.responsibilities = responsibilities;
}
public int getRoomNumber(){
return roomNumber;
}
public void setRoomNumber(int roomNumber){
this.roomNumber = roomNumber;
}
public void print(String text){
super.print(text);
System.out.println(" this.responsibilities are: " + this.responsibilities);
System.out.println("this.rommNumber is: " + this.roomNumber);
}
}