Challenges

Printing Personalized Hello

Create a program that prints out a message to the user saying hello and stating your name.

For example:

Hello, this application was developed by Nico De Witte.

Fix the Syntax Errors

Fix the syntax errors in the following applications. Take note of the different error messages given by NetBeans.

Application 1

public static void main(String[] args) {
    System.out.println("Hello world")
}

Application 2

public static void main(String[] args) {
    System.out.println("Hello user");
    System.out.printn("I am a student at VIVES University");
    System.out.print("I really like playing games and going out.\n");
}

Application 3

Application 4

Application 5

Personal Details

Create an application that prints out some personal information about yourself, like for example:

  • your name

  • your age

  • your height

  • your weight

  • the color of your eyes

  • ...

Try to concatenate strings with actual numbers like for example:

Escape Characters

Try to output the information below using Java. Make sure to use escape characters to create extra new lines, tabs and such.

Last updated