iknow that but i want to sort array as the code show but compiler when a[i] reach the final one a it compare it with a which it is not exist , i want to it stop compare when it reach the final index is there any code that could help me???
1) IF you store just one object, use List, if you have two object key and value use Map.
2) List is ordered, your objects will be stored in the order on which they are inserted, Map is not ordered, unless you use sorted ones.
I tried to load a simple jsp page from an android application using the WebView.loadUrl(); But can't able to load the page. The error message is: Web page not available.The webpage at http://localhost/SampleJsp is temporarily down or it may have been moved to new address.
My aim is to access a jsp page from an android application.
When I searched the net i got the information that its possible with WebView.loadUrl() method. But when I tried it in my application I got the error that Webpage not available. But the jsp application is running and i'm getting the page, but through android, it's error.
One of my friends said that JAVA is not a suitable language in networking , he didn't have a proper info about why it wasn't . I want to know whats the problem in JAVA for networking as i would be using it to program LAN,