//i have written this code in package p1::
//address of this file is:::C:\p1
package p1;
public class balance{
String name;
double bal;
public balance(String n,double b)
{
name=n;
bal=b;
}
}
//and now i want to import this file in this code
//address of this file is:::C:\Program Files\Java\jdk1.6.0_11\bin
import p1.*;
class testbal
{
public static void main(String args[]){
balance test=new balance("ahmed",99.88);
}
}
plz tell how to execute this imported package file in cmd.