Answers for "how to print int java"

2

java print out int and string

public class Test 
{ 
    public static void main(String[] args) 
    { 
        System.out.println(45+5 + "=" +45+5); 
    } 
}
Posted by: Guest on October-29-2020
0

print an integer in java

public class HelloWorld {
    public static void main(String[] args) {
        int number = 45;
        System.out.println("You entered: " + number);
        // output => You entered: 45
    }
}
Posted by: Guest on March-04-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language