You are on page 1of 1

import java.util.

Scanner;
public class objects{
public static void main (String[] args) {
final int x=6; // non-static or final having fixed value
System.out.println("X:"+x);

System.out.println("Enter any value for y:");


Scanner input=new Scanner(System.in); //user inserting value
int y=input.nextInt();
System.out.println("Y:"+y);
when wanted

}
}

// static or value could change

You might also like