DEV Community

Arshad Ali
Arshad Ali

Posted on

JAVA- Variables

public class Main {

    public static void main(String[] args) {


    int x = 123;
    double y = 3.14;
    boolean z = true;
    char symbol = '@';
    String name = "Bro";

    System.out.println("Hello"+x);
    System.out.println("Hello"+y);
    System.out.println("Hello"+z);
    System.out.println("Hello"+symbol);
    System.out.println("Hello"+name);

    }


}
Enter fullscreen mode Exit fullscreen mode

Top comments (0)