Hello,
can you give me a hint please? i spent a lot of time on this task :(
package de.codegym.task.task13.task1320;
/*
Neo
*/
public class Solution {
public static void main(String[] args) throws Exception {
System.out.println(Matrix.NEO);
}
static class Matrix {
public static DBObject NEO = new User().initializeIdAndName(1, "Neo");
}
interface DBObject {
DBObject initializeIdAndName(long id, String name);
}
static class User implements DBObject {
long id;
String name;
@Override
public DBObject initializeIdAndName(long id, String name){
return User.this;
}
@Override
public String toString() {
return String.format("Der Name des Benutzer ist %s, ID = %d", name, id);
}
}
}