import java.util.*;

class Office {
    private List<Integer> age = new ArrayList<>();
    private List<String> name = new ArrayList<>();
    private List<Integer> id = new ArrayList<>();

    public void append(int age, String name, int id){
        this.age.add(age);
        this.name.add(name);
        this.id.add(id);
    }

    public List<Object> whileName(String nameTo){
        for (int i = 0; i < this.name.size(); i++) {
            if (this.name.get(i).equals(nameTo)) {
                return Arrays.asList(
                    this.name.get(i),
                    this.age.get(i),
                    this.id.get(i)
                );
            }
        }
        return null;
}}
class Main {
    public static void main(String[] args) {
        System.out.println("Hello world!");
    }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: