I have Java final test tomorrow it is my first time learning and I don't know when to use some code or how to use it ?
I have prepared the questions that I don't know can you answer them please
1-how can I know that I need an array?
2-when to use charAt and how to use it ?
3-what is stub mean and why sometime they ask to have stub ?
4-when to use only condition in for loop?(e.g: for( ; i<10 ;)
5-what is the different between " " and ' ' ? in one of the example they used if (c =='p') why didn't we use if(c == "p")
6- when to use == and .equal
7-how to use boolean? can you give me simple example.
8-how to join 2 string?
7-when to use split?