hi there good evevning >>>>> :lol: :lol:
i hope all of u is good .....
sorry but i know i am new but i face aproblem with array i don't know how to solve problem with array >>>>>
i have problem that said enter name of 15 studemt and there grade i should read information from the key board i don't how to use the array with buffer
i write this code for the problem i don't know :( :( :(
public class StudentGrade
{
private double grade;
private String name;
public void setgrade( double G)
{
grade=G;
}
public double getgrade()
{
return grade;
}
public void setname( String n)
{
name=n;
}
public String getname()
{
return name;
}
}
public class StudentGradeU
{
StudentGrade E1 = new StudentGrade();
StudentGrade [] student= new [15] StudentGrade;
public static void main ( String argv[])
{
StudentGrade [] student = int [15] StudentGrade;
double Average= Average (student);
}
public static double Average ()
{
for ( inti=0 ; i<10 ; i++)
sum = sum+ arr[i];
return (sum/15);
}
}
plz he;p me with that >>>>>
thanks alot
warm heart