package class
import java.io.*;
import java.lang.*;
import java.util.*;
package Yo
public class C
{
String s,f,d;
C(String s,String f,String d)
{
this.f=f;
this.s=s;
this.d=d;
}
void displayj()
{
System.out.println("1st arg passed:"+" "+s);
System.out.println("2nd arg passed:"+" "+f);
System.out.println("single arg const:"+" "+d);
}
}
main class
import java.lang.*;
import java.io.*;
import java.util.*;
import java.Yo.*;
class B extends C
{
String s,d,h,f;
B(String h,String s,String f,String d)
{
super(s,f,d);
this.h=h;
}
void display()
{
System.out.println("b class const:"+" "+h);
displayj();
}
}
class A1
{
public static void main(String args[])throws IOException
{
Scanner s=new Scanner(System.in);
B anu=new B(s.nextLine(),"haiii","i rock","punk");
anu.display();
}
}
i created a folder in D:\ and stored the package class in it
den gave its path in environmental variable
and executed the main class
i still get error that package not found