Change java to 11

This commit is contained in:
marcin witkowski 2021-10-10 18:17:31 +02:00
parent a5a8af76ed
commit 846ea3cd22
2 changed files with 3 additions and 42 deletions

View File

@ -9,8 +9,8 @@
<version>1.0-SNAPSHOT</version>
<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
</properties>
<build>

View File

@ -1,51 +1,12 @@
package second.shortcuts;
import java.util.List;
public class ClassThatHaveItAll implements InterfaceOne {
String name;
Integer number;
List<Long> list;
public ClassThatHaveItAll() {
}
public ClassThatHaveItAll(String name, Integer number, List<Long> list) {
this.name = name;
this.number = number;
this.list = list;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Integer getNumber() {
return number;
}
public void setNumber(Integer number) {
this.number = number;
}
public List<Long> getList() {
return list;
}
public void setList(List<Long> list) {
this.list = list;
}
@Override
public void printMe(String info) {
System.out.println(info);
}
public void usageOfPrint() {
printMe("Hi");
}
}