Can anyone please help me how to get user input in java programs in vs code without using public static void main (String [] args)
I can safely do this thing using method call in BlueJ ide but couldn't figure out how to do this in vs code or any other ides....
Here is the simple code that I want to run--
public class Rectangle
{
public static void main (int l, int b)
{
int area, peri;
area = l*b;
peri = 2*(l+b);
System.out.println("Area = "+area);
System.out.println("Perimeter = "+peri);
}
}