public class Profile {
private static final String NAME = "Thore";
private static final LocalDate BIRTH_DATE = LocalDate.of(1998,12, 5);
private int age;
public Profile() {
this.age = Period.between(BIRTH_DATE, LocalDate.now()).getYears();
whoAmI();
}
private void whoAmI() {
System.out.printf("""
Hey! My name is %s, I'm %d years old and crazy about technology.
The diversity of computer science drives me to keep going.
'If there is only one solution, get a second opinion' - Timothy High
In addition to wise sentences, I love dull humor.
'What is the biggest lie in the entire universe?'
'I have read and agree to the Terms & Conditions.'
\s""",
Profile.NAME, this.age);
}
public void age() {
this.age += 1; // A computer freak doesn't age, he levels up
}
C is important because otherwise we’d have to code with omputers.
-
Hochschule Mannheim
- Germany
-
23:20
(UTC +01:00)
Highlights
- Pro
Popular repositories Loading
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.