Please try doing a bit of research before posting questions like this. If you have a specific problem then show what you have done and what errors you receive. But don't assume that we can guess what is happening in your program.
publicclass Calendar extends Applet
int b=0, c=0;
JLabel lblInput= new JLabel("Input year:");
JTextField txtInput= new JTextField("2012",4);
JLabel lbl1= new JLabel;
JButton btnOk=new JButton("OK");
//JButton btnClr=new JButton("Clear");
//public void init()
sir .. can you help me ..
There was no error . but when i try to run file .. it failed to initialize . I just want to have a calendar in Java for our finals .. I think its not really difficult .. so i choose this proposal. thanks .. I hop you help me guys
NOTE: Sorry guys it was my first time to do java .. so please don't laugh at me .. LOL
in the above code you stored array with five elements so yor index range from 0 to 4 you mention i=1 and maxmium is 5 so for iterations i become 5 at that time it will give arrayoutbound exception you can just change
sorry but you solution didnt work,
there is problem in in this statement a[i]>a[i+1] ,when i be 5 ,it is in a>a, so compiler search for a and dont found,so here gave me the problem ,and by the way what is a[i]>a[i+1] i didnt get it
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,
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 .
Which often means that the assertion is nonsense, regardless of what the assertion is.
At best, what someone might have originally told him was that Java doesn't have access to raw sockets. Which means, for example, that you can't write a tool like wireshark in Java (java only excluding JNI.)
Now at worst it might have been a convoluted way of saying that you can't use Java to write an IP stack. But then you can't use Java for many driver tasks and you wouldn't want to anyways. And there are other odd ways of expressing that as well such as suggesting that you wouldn't use Java to create a high speed router.
However if you want to use it to create something much more normal like a web server then there is no problem.
Mr.Richard this is regarding your recent work of what you mentioned , i m planning to implement a chat messenger using LAN and i m also planning to extend video conferencing to it. When i discussed this with my friends one of them told me about that ""DISADVANTAGE"" of JAVA , you seem to have experience in it , could you please help with your advice regarding the time it might require us to complete the chat messenger . we are 2 in number and we have learnt and started JAVA implementation just a month ago
Sorry, but I can help with specific questions but I cannot provide training and/or consultancy services. You should get familiar with the Java Tutorials[^] which contain some excellent training materials. Also try some Google research and you will find lots of useful information.