Hi,

Very first thing, when you are a biginner; don't try to complete your code in brief.
Properly declare the variable.
find the below code.


package com.java.main;

import...