|
iknow that but i want to sort array as the code show but compiler when a[i] reach the final one a[4] it compare it with a[5] 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???
|
|
|
|
|
OmarSH wrote: i want to it stop compare when it reach the final index Then check the value of the index before the compare. Or change your for statement so it counts from 0 to 3, then when i is equal to 3, i+1 will evaluate to 4 and still be a valid index.
|
|
|
|
|
the arrays index no start with zero, and you enter here 5 element in array, so the last elent index no is 4
and you take loop upto 5 index no hense it raised error array index out of bound
int a[]={1,2,3,4,5];
for(inti=0;i<5;i++)
System.out.println(a[i]);
or
for(int i=0;i<=4;i++)
or
for(int i=0;i<a.Length;i++)
|
|
|
|
|
please am writing project about THE DESIGN AND IMPLEMENTATION OF STUDENT INFORMATION SYSTEM. this project must be design with java including the database
|
|
|
|
|
At the risk of repeating myself: no one here is going to write your project for you. Make an effort to do your own work.
|
|
|
|
|
please i need java code on the topic: design and implementation of student information.
|
|
|
|
|
Then please make use of Google to search for it, or sharpen your pencil and start coding.
|
|
|
|
|
Hello all,
I have been trying to generate an x509 certificate and sign it with my private key but I could not. I found some codes online but have problems not working properly. Also, most of them are deprecated.
I appreciate the help and support
|
|
|
|
|
|
Thanks Sandeep but I have tried the code in the link you posted and it has a problem. Have you tried it? if yes, I would benefit a lot if you send me the whole project including all the libraries.
Regards
|
|
|
|
|
That is not the way it works. We do not provide code. We are developers ourselves, we code for money.
What is the exception/ error? have you just c&p'd the code/followed the link at the end of the tutorial or did you actually read the tutorial?
It's not that hard to create X509 certificates.
|
|
|
|
|
Hello
Yes I did read the whole tutorial but the line that had a problem was this
certGen.setSerialNumber(new DERInteger(BigInteger.valueOf(System.currentTimeMillis())));
I only asked for a push not for a complete code.
That's simply it.
|
|
|
|
|
on what criteria we will decide whether to use map or list?
|
|
|
|
|
It depends what you want to do with the information you are processing. The List [^] is just a simple list of values, whereas a Map [^] has keys to values for fast access.
|
|
|
|
|
i have one confusion that when we declare a list as below
List lt = new Arraylist();
Then in that case what value it can store i.e same type of value or it is capable of storing any type of variables or objects.
Jishnu
|
|
|
|
|
The List can store any type of object, but it does not make sense to store different types in the same list.
|
|
|
|
|
Many things you need to know,
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.
Source: See List vs Set vs Map
|
|
|
|
|
Why are you telling me this?
Use the best guess
|
|
|
|
|
Dear All,
Kindly be informed that I am facing an issue where every time i connect to a secured HTTPS server I get the following error "Quote: Exception in thread "main" javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative names present "
I don't know how to solve this issue and I googled it and no luck. Also please be noted that I am a beginner in Java.
Thanks in advance
|
|
|
|
|
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.
|
|
|
|
|
Padma4u wrote: The webpage at http://localhost/SampleJsp is temporarily down or it may have been moved to new address. Exactly what help do you expect with this problem?
|
|
|
|
|
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.
|
|
|
|
|
Well you need to investigate why your program cannot get that page.
|
|
|
|
|
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,
|
|
|
|
|
irfanulla sharieff wrote: JAVA is not a suitable language
Full stop.
Ok, I'll just toddle back over to the C# forum. :diminishing tuneless whistle:
|
|
|
|