In this example we will show the method to create an int type in Java.
Source Code
package com.beginner.examples;
public class IntType {
public static void main(String[] args) {
int i = 5; // int
System.out.println(i);
}
}
Output:
5