public class point { private float x;// private float y;// public point(float x,float y) { this.x=x; this.y=y; } } public static void main(String[] args) { point p = new point(3.5,2.8); float a = p.x;// }