ok. For the first question i have done it in the pic attached. It will only save the 1st and 2nd input but will not save the rest.
For 2nd and 3rd question i have no ideas of whats going on. Maybe you can tell me the concept i will do the coding.
Thanks
I don't even understand what you are doing for question 1.
If the question asked for you to take 10 inputs from your user, why don't you use ask the user to enter 10 integers separated by whitespace. Then use your scanner and scan 10 times, put the 10 values into a 10 elements integer array and apply the sorting algorithm on the array ?
Question 2 is something you should go and read up. If I explain to you what is OOP, then what more do you need to explain ? Which school are you studying and why ain't you able to answer question 2 yourself ?
Question 3
Basically given a number N, a 2D pattern provided to you will have N rows and N columns. The pattern is made up of asterisk(*) and space( ).
You are told to print out such a 2D pattern where at position(j, i) in the 2D pattern, it will be an asterisk(*) if at row i and column j, i+j is an even number (divisible by 2) or space( ) if i+j is odd (not divisible by 2).
I think I have made the question a lot more clearer for you to understand.