In this example we will show the method to use assignment operator in Java.
Source Code
package com.beginner.examples;
public class Assignment {
public static void main(String[] args) {
int i = 11; // assign
System.out.println(i);
}
}
Output:
11