public class Developer {
private String name;
private String pronouns;
private String[] interests;
public Developer(String name, String pronouns, String[] interests) {
this.name = name;
this.pronouns = pronouns;
this.interests = interests;
}
public void sayHello() {
System.out.println("Hi! My name is " + name + " (" + pronouns + "), and I like " + Arrays.toString(interests));
}
}
public static void main(String[] args) {
Developer me = new Developer("Tommy", "he/him", new String[]{"Java", "NodeJS", "Python", "HTML/CSS/JS", "coding in general ;)"});
me.sayHello();
}
tommyskeff / nbt Goto Github PK
View Code? Open in Web Editor NEWSimple yet powerful library for serializing and deserializing data in NBT format.
License: Apache License 2.0