2cm
#1
<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>
<Below this line, add a link to the EXACT exercise that you are stuck at.>
<In what way does your code behave incorrectly? Include ALL error messages.>
```
how do i deal with int
public class DataTypes {
public static void main(String args) {
System.out.println();
}
}
<do not remove the three backticks above>
Instruction:
Type any whole number in between the parentheses of System.out.println();
what is int?
-
int is short for integer, which are all positive and negative numbers, including zero.
-
The int data type only allows values between -2,147,483,648 and 2,147,483,647.
so you can write any value from -2,147,483,648 to 2,147,483,647 inside the parentheses of System.out.println(); like
System.out.println(5);
or
System.out.println(64971);
even when i put a valid int within the parenthesis it still displays an error
You should post your code with the valid int so we can review it.
system
closed
#5
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.