First of all thanks for your reply on my question. Programming is the hardest thing in this world unless you have a good teacher.
It's pointless to blame your teacher or anyone else. Programming is just an art which can never be taught, so better try to learn on your own. There are bunch of resources from where you can learn programming, internet, books, forums etc.
1) When the iPhone app is launched it is connected to Apple's server. And my purpose is to detect the change of status of the reservation server. How could I know what type of server is Apple using? My java application should start with hooking to a destinated IP address and listening to a specific port and detect the change of status ? if then how is it possible to get these information?
You must go through Java Networking tutorials in order to accomplish this task.
2) When the store is open, then a user is given a form for entry. First click into a specific model of iPhone 4S to order, then select a time-slot to pick up, then select the quantity, after that have to enter a account password and the passport number. I suppose all these entries in the form can be pre-coded into the program and then be submitted at once, so the reservation can be done very fast. The problem is how could I know the data format that the server is able to accept?
Are you going to develop this for your own or for someone else? If for someone else, ask him all the details and if you want to develop it for your own purpose, again think about it carefully and i will recommend you to work for Functional Specification, Requirement Specification, Design, algorithms and documentation part, to achieve the best quality results. Again, you need to go through Java Networking tutorials to achieve this.
Hope this helps.
Good Luck