can some one help in this code because their is two error in my code.
need reply ASAP. please.
import java.util.*;
public class Card
{
private int point;
public Card()
{
Random r = new Random();
//2-10
point = r.nextInt(10);
while(point<2)
{
point = r.nextInt(10);
}
public void setPoint(int p) <--------- illegal start of expression
{
point = p;
}
public int getPoint()
{
return point;
}
}
} <------- class,interface or enum expected