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

no one reaply i am sad >>>

thanx

warm heart

What have you tried?
Except the declaration of the array you don't seem to have done anything...

It also helps to state the problem that you are having. Just saying HELP gives me no clue as to the problem you are having.

I can infer somewhat from your statement above, but my determination is you want to know how to read input and place it into the array?

If that is not it, then you need to be more specific.

:)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.