package com.coolcsn;
public class Main {
public static void main(String[] args) {
System.out.printf("The population of my little kingdom is %d \n", Person.getCounter());
// int counter = 0;
// String student1Name = "Teodora";
// int student1FNumber = 1234577;
// int student1Age = 18;
// String student2Name = "Teodora";
// String[] studentsNames = new String[120];
// int[] studentsAges = new int[120];
Person tedi = new Person("Teodora", 18);
// counter++;
// Person tedi = new Person();
// tedi.name = "Teodora";
// tedi.age = 700;
// tedi.setName("Teodora");
// tedi.setAge(100);
Person stoyan = new Person(55, "Stoyan");
// counter++;
// System.out.printf("My name is %1$s. I am %2$d years old! And my balnce is %3$f \n", tedi.getName(), tedi.getAge(), tedi.getBalance());
// System.out.printf("My name is %1$s. I am %2$d years old! And my balnce is %3$f \n", stoyan.getName(), stoyan.getAge(), stoyan.getBalance());
tedi.introduceYourSelf();
stoyan.introduceYourSelf();
doSomething();
// Person.counter = 55;
// System.out.printf("The population of my little kingdom is %d", counter);
System.out.printf("The population of my little kingdom is %d \n", Person.getCounter());
System.out.printf("The national income of my little kingdom is %f \n", Person.getNationalIncome());
Student kircho = new Student("Kircho", 25, "3216735217FD6351276");
kircho.introduceYourSelf();
Athlete krisi = new Athlete("Krisi", 26, "Box");
krisi.introduceYourSelf();
Executor exec1 = new Executor(kircho);
exec1.makeItSpeak();
}
public static void doSomething() {
Person georgi = new Person(18, "Georgi");
georgi.introduceYourSelf();
}
}
Comments