that's normal.
first of all, your package statement has to be the very first one in your java file, so before your import statements.
secondly, you haven't named your package java.Yo, you named it Yo, so, change your code to:
package Yo; // don't forget the ;
import java.io.*;
import java.lang.*;
import java.util.*;
...
and your other class:
import java.lang.*;
import java.io.*;
import java.util.*;
import Yo.*; /* there is no java. , this is only in packages which actually start in a java folder */
class B extends C
{
...
stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433
There are two things
package name should always end with semicolon.
secondly,package declaration should always be the first statement of your code.
rushikesh jadha
Junior Poster in Training
89 posts since Dec 2011
Reputation Points: 4
Solved Threads: 11
Declare constructor C as public.
rushikesh jadha
Junior Poster in Training
89 posts since Dec 2011
Reputation Points: 4
Solved Threads: 11
stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433
Please mark it as solved.
rushikesh jadha
Junior Poster in Training
89 posts since Dec 2011
Reputation Points: 4
Solved Threads: 11