import java.util.Code Answer’s
A java.util package supplies Java collections' framework categories, worldwide aid categories, a favour loader, qualities,incidental integer production, string breaker and examining groups,base64 encrypting and interpreting, a portion arrangements, and numerous assorted groups. This collection also has legacy groups and legacy date and date and time. What is import java.util.* in Java ? One of the java keyboard is import that can be utilized for drifting a Java group or whole java collection. For instance,for drifting java.util.Calendar meaning that you are just drifting one a single Calendar group. If someone desires to drift all the groups in any java collection, his drifting content would be like that import java.util. This meaning he is drifting the entire java.util collection.
java packages example
// import <package> -> Imports the whole package
// import <package>.<class> -> Imports a certain class
import java.util.Scanner;
import java.util.*
import java.util.*;
class Main {
public static void main(String[] args) {
System.out.println("Sample Input");
Scanner sc= new Scanner(System.in);
System.out.print("Enter first number- 5 ");
int x= sc.nextInt();
System.out.print("Enter second number- 4");
int y= sc.nextInt();
int sum = x+y;
int sub = x-y;
System.out.println("Sample Outpur=" +"("+sub + "," + sum+")" );
Finally,we can say that groups are utilized to save,recover,operate and connect cluster of data in java.