Home > Back-end >  A List <entity class> how to traverse, insert the data?
A List <entity class> how to traverse, insert the data?

Time:03-17

It is my List
Entity class


The business layer code


How do I insert the data inside and traversal?

CodePudding user response:

Brother your data source

CodePudding user response:

reference drift ~ 1/f, the ape's reply:
brother your data source


This is I want to insert the data inside the

CodePudding user response:

With the enhanced for loop is more convenient to insert and traversal,
For (MonitorData mon: number) {
System. The out. Println (mon);
}
Insert I see is a data, then use the
MonitorData mon=new MonitorData ();
Mon. SetOnlineRate (or);
Mon. SetAlarmRate (ar);
Number. The add (mon);
We have to do is
  • Related