Did you have a real question, or did you just want to trade homework assignments?
Yes i do i want to know how to create a next robot using loops
Do have any example codes?
When one robot reaches the exit a new robot is created in the room and makes its way to the exit as well?
Anyone have any suggestion for this question as i'm stuck.
That isn't really how this works. You'll find plenty of example code in the tutorial I linked to you, as well as googling things like "java robot example". If you want more specific help, you'll have to ask a more specific question. Answering "I tried XYZ and expected ABC but got DEF instead, what's going on?" is a lot easier than answering "I need to do ABC, gimme codes". I recommend trying something out, providing an SSCCE, and asking a specific technical question. Much luck.
I've merged your two threads, as there isn't any new information in the other one. Please read the advice I already gave you.
I also deleted your duplicate post.
When posting code, please use the code tags to preserve formatting.
What part of that is giving you trouble? Break your assignment down into smaller steps, then take those steps one at a time.
Hint: It seems to me that you should think about using this class, not modifying it (at least not at first).
I just have 2 problem
1) Create a new robot after one has escape out of the walls?
//My code only has one 1 robot..
2) Count how many moves it takes the robot to escape?