| | |
i have problem with array plz help
![]() |
•
•
Join Date: Dec 2004
Posts: 4
Reputation:
Solved Threads: 0
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
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
•
•
Join Date: Sep 2004
Posts: 84
Reputation:
Solved Threads: 1
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.
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.
![]() |
Similar Threads
- Printers problem. hard. pros in plz!! (USB Devices and other Peripherals)
- inserting an element into an array in c language (C)
- inserting an element into an array in c language (C)
- MERGED: Deleting duplicates in an array (plz help me out!!!!!!!) (C)
Other Threads in the Java Forum
- Previous Thread: Problem with JBuilder
- Next Thread: VB to java convertor
| Thread Tools | Search this Thread |
911 addball addressbook android api append applet application apps array arrays automation binary bluetooth businessintelligence button card class client code collision component crashcourse css csv database eclipse ee error fractal free ftp game gis givemetehcodez graphics gui html ide image integer integration j2me japplet java javaarraylist javadoc javafx javaprojects jni jpanel julia jvm linked linux list loan machine map method methods migrate mobile netbeans objects oriented output phone physics printf problem program programming project projects radio recursion replaydirector reporting researchinmotion rotatetext scanner se server service set sms software sort sql string swing test textfield threads tree trolltech ubuntu utility windows






