I came over this post again , it surprise for me to not see my last post ,
any way, Dear Richard thank you so much for clearing the process steps of loop , I really appropriate your time. and i'm sorry to replay back late i just shack to not see my thank you post I may closed the browser before public the post
There're 9 numbers in a 3 x 3 plane. We could only clockwise or counterclockwise rotate the four tiles around one of the four points, I II III and IV. R1, R2, R3, R4 and r1, r2, r3, r4 are corresponding to the 8 kinds of rotation, where we mark clockwise rotations as r and counterclockwise rotations as R. For example, starting from configuration (S), by the rotation sequence r1R4r2R3 we reach the configuration (E). Now, starting from configuration (S), find the shortest way to reach configuration (T).
I already have done the work like this ,the real problem is about machine learning，how could the machine konw the way to the result,I have three ideas,one islet machine try all the ways,another is find the law,it like the deduction of mathematic，the last one is that,let machine think like man,it could do the work like a real person ,maybe i need to design a classifier like SVM to training the machie。
Do you have any advice about last two？
I just ran a slightly modified version of your code and it returned all the items. I did find that the object reader did not return the list as an ArrayList<Book> (maybe my mistake) so had to modify the foreach to accept a List of objects and cast each one to a Book.
A slight modification shows that your code should work fine, and return the full list.
if(e.getSource() == btn) //add Book
String title = txtFieldTitle.getText();
book aBok = new book(title, anAuthor , thePrice);
aList = new ArrayList<book>();
}//if source btn end
Every time you add a book you create a new ArrayList<book>(), so you are losing the previous books. You need to create your list at the beginning of the program and add to that as you enter more books.
Sorry, I misunderstood, as the word "upgrade" has a slightly different meaning. If you open any message and move your mouse just to the left of the text near the top, you should see two coloured arrows. A green one pointing up, and a red one pointing down. Click the green one to upvote the message, or the red one to downvote (means you think it is not a good message).
As to your other problem, I think we need to see the code, so I suggest you open a new question.
Whoa! before i thought i know Java but when i saw your code about serialization i realized i need to study more. I have never come across it. may be because I am just at intermediate level. your organization of class is what so much impress me about your codes. thank you so much. I wish I can get the complete source code for this.
The app needs to have drag and drop function to build tool with workflow like visio for business users. Easy access for members via web or mobile devices. Internet may not available but mobile can sync data when internet is available.
I'm setting up new application with the following architecture, so need your advice.
html5+JS on frontend on web, and swift on mobile.
Java - MVC webservices provide for both web and mobile front end.
bigdata on the back end.
you know any code generation should be used for Java?