This is my code, when i compile with jgrasp show me this error:
GaruesitApp.java:44: error: cannot access Garuesit public static void gjejMeTeMiret(Garuesit [] garues) ^
bad source file: .\Garuesit.java
file does not contain class Garuesit
Please remove or make sure it appears in the correct subdirectory of the sourcepath.
import java.util.Scanner;
public class GaruesitApp {
public static void main (String[]args)
{
boolean proccesing=true;
Scanner s= new Scanner(System.in);
Scanner s1= new Scanner(System.in);
System.out.println("Jep numrin e garuesve(nuk duhet te kete me shume se 15 garues):");
int num=s.nextInt();
if(num>15){System.out.println("Gabim ne numer "+num);
proccesing=false;}
else{
Garuesit[] g1= new Garuesit[num];
double k=0;
for(int i=0; i<num; i++)
{
System.out.println("Jep id e personit");
int a=s.nextInt();
if(a<0 || a>15){System.out.println("Gabim:nuk duhet te kem me shume se 15!!!");
proccesing=false;
}
else{
System.out.println("Jep emrin e personit");
String e= s1.nextLine();
System.out.println("jep mbiemrin e personit");
String mb= s1.nextLine();
System.out.println("Jep kohen ");
k = s.nextDouble();
Garuesit g= new Garuesit(a, e, mb, k);
g1[i]=g;
System.out.println("Garuesi "+(i+1)+" "+g.toString());}
}
gjejMeTeMiret(g1);
}}
public static void gjejMeTeMiret(Garuesit [] garues)
{
Garuesit temp;
for(int i=0; i<garues.length-1; i++)
{
for(int j=i+1; j<garues.length; j++)
{
if(garues[i].getKoha()>garues[j].getKoha())
{
temp=garues[i];
garues[i]=garues[j];
garues[j]=temp;
}
}
}
System.out.println("pozita e 1: "+ garues[0].getEmri()+" me kohen "+garues[0].getKoha());
System.out.println("pozita e 2: "+ garues[1].getEmri()+" me kohen "+garues[1].getKoha());
System.out.println("pozita e 3: "+ garues[2].getEmri()+" me kohen "+garues[2].getKoha());
}
}