Attachments
-
You do not have permission to view the full content of this post. Log in or register now.
Pano po e code yung array of objects sir?Since its java, how about iterate through the array of objects?
You set those values you are asking about each student with an instance of the class Student. That's the part you are not doing in the code above.
Ang tanong ko sir, pano po e array yung class po? Triny ko in different ways pero no idea tlagahindi ko alam kung anong tanong mo jan sir. pero at a glance, there is something wrong with your code. pero yun nga, your question is vague and unclear.
Wala po dun nakisaliksik po ako dun pati din sa YøùTùbé. D ko makita.learn in Uhidemy....
Pano po e code yung array of objects sir?
Ang tanong ko sir, pano po e array yung class po? Triny ko in different ways pero no idea tlaga
I think ang gusto niya mangyare is mag generate ng madaming classes based dun sa different iteration which is not gonna work. Array can only hold data structure types like int, double, String, Object, etc etc. Class can't be made, unless it is Interface like JProgressBar, JButton etc.
sample ganito:Pano po e code yung array of objects sir?
sa loob ng array, may mga objectssample ganito:
var person = [
{name: "John Doe", age: 24, address: "Malabon City"},
{name: "Jane Die", age: 20, address: "Quezon City"},
{name: "John Dave", age: 14, address: "Manila City"}
];