I'm pretty sure my code is good but when i run it, it shows me some weird stuff.
public class Artifact {
int number;
String culture;
int century;
public Artifact(int number){
this.number = number;
}
public Artifact(int number, String culture){
this.number = number;
this.culture = culture;
}
public Artifact(int number, String culture, int century){
this.number = number;
this.culture = culture;
this.century = century;
}
public static void main(String[] args) {
Artifact artifact1 = new Artifact(212121);
Artifact artifact2 = new Artifact(213421, "Aztecs");
Artifact artifact3 = new Artifact(216721, "Romans", 12);
System.out.println("The first type: " + artifact1);
System.out.println("The second type: " + artifact2);
System.out.println("The third type: " + artifact3);
}
}