I cannot understand what should i do here, and what am I doing wrong
package pl.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 String toString() {
return String.format("Imię użytkownika to %s, id = %d", name, id);
}
public DBObject initializeIdAndName(long id, String name){
DBObject NEO = new User();
this.name = name;
this.id = id;
System.out.print(NEO.toString());
return null;
}
}
}