/* *Mar 3 2000 *Demonstrates changing info of an object through its methods *Related Files: TheX.java, filevals.txt *As/of March 7th takes an argument to set x to a particular number upon call. *a/o mar 15th won't find the thex class >> fixed mar 22: classpath set wrong, changed to .; *4/4: Stable */ import java.io.*; class NewX { public static void main(String args[]) { TheX myx=new TheX(5); myx.printX(); int newVal; if (args.length >0 ) { newVal=Integer.parseInt(args[0]); } else { newVal=314; } myx.setX(newVal); myx.printX(); System.out.println("List file:"); myx.getFileX("filevals.txt"); myx.printX(); } }