3,927 Posted Topics
Re: Please clarify exactly what you are having trouble with. | |
Re: @Taywin: You're allowed to initialize a final instance variable like that in the constructor one time. You cannot make further assignments to it though. | |
Re: Yes, you can write your own Comparator to compare on the field you are wanting to search by and supply that as a parameter to the binarySearch() method. You can find a straightforward example of that [URL="http://stackoverflow.com/questions/901944/implement-binary-search-in-objects/901960#901960"]here[/URL]. | |
Re: It should also tell the line the error is occurring on. | |
Re: Perhaps you could elaborate on "a few failures" rather than expecting people to guess? | |
Re: If you wish to initialize a new array like that you will need to state it like[code]new int[]{ ... }[/code] | |
Re: You haven't asked a question. | |
Re: Posting complete homework solutions is discouraged here. We are here to help people solve their own problems and learn. We are not a homework completion service. | |
Re: If you want to pass an instance of your MyDate class as a parameter, you'll need to create it with 'new' keyword: [iCODE]new MyDate(...)[/iCODE]. | |
Re: Paste the exact error message. It tells you what it cannot resolve. | |
Re: You could use clipping or alpha compositing to achieve that. Both are covered here: [url]http://download.oracle.com/javase/tutorial/2d/advanced/index.html[/url] | |
Re: [B]> Or is its only purpose to allow me to right click and select "copy link location"? [/B] That's the only purpose that I'm aware of. It allows you to link directly to the post. | |
Re: You need to post specific questions as you tackle each of those steps. | |
Re: I don't really see any trying at all in this thread, just a lot of begging for someone to write a script for you. I believe it's been made pretty clear that it will not happen that way. | |
Re: You are expected to show some effort when asking for schoolwork help. Post what code you have started or perhaps pseudocode fragments. Ask specific questions about what you are having trouble with. | |
Re: @bobbywe: What does your post have to do with this old thread you have resurrected? | |
Re: Closing. Please refer to the thread linked by Momerath. @fashxfreak: Do not create multiple threads for a single question. | |
Re: You completely ignored NormR1's questions and this is the third time you have posted up the link to the assignment and asked someone to do it for you. You can either put some effort into this or I can just close the thread so you don't waste any more of … | |
Re: It's currently optimized for the key phases "Thanks for sharing" and "Do SEO to get backlinks to ur site." | |
Re: Either replace this line[CODE]JOptionPane.showMessageDialog(null,e.getMessage() + "error en cargarComboProvincias");[/CODE]with [CODE]e.printStackTrace();[/CODE]or add the stack trace before/after your dialog message. You are suppressing most of the useful debugging information from the exception. | |
Re: MySql would need to be installed locally on their machine. It would be much easier if you used an embedded database like H2 or JavaDB (Derby) instead. | |
Re: You would have a much better idea of why it wasn't working if you did not do this[CODE]}catch(Exception e){}[/CODE]At least print a stack trace of the exception.[CODE]}catch(Exception e){ e.printStackTrace(); }[/CODE] | |
Re: Of course it does, because there is no ".awt.Rectangle" class. Check the class' package again. | |
Re: All I see is an assignment with no effort demonstrated. What have you tried so far? What have you [I]thought[/I] about trying? If you don't have real code yet, how about some pseudocode? How about a specific question? Per our forum rules: [B]Do provide evidence of having done some work … | |
Re: You need to demonstrate a bit of effort on this instead of asking others to spoonfeed you a project. It's [I]your[/I] project. | |
Re: > Only several small once, written by people who don't know C++. Java is for beginners, Spoken in true ignorance. | |
Re: You code needs to be in a method. You currently have it in the body of the class itself. Look at your other programs or examples and note how they declare a main() method and put the code in there. | |
Re: > cannot work That's not much to go on. Someone would be more likely to help if you clearly stated what the problem was. | |
Re: You can also rotate the current graphics context with the [iCODE].rotate()[/iCODE]method of the Graphics2D class. [URL="http://download.oracle.com/javase/tutorial/2d/advanced/transforming.html"]This part of the Java tutorial[/URL] discusses these transformations. | |
Re: Post the stack trace of the errors. They will tell you exactly what the errors are and what line they occur on. | |
Re: @Onlineshade: You do not need to post a useless comment on every single thread that you drag up. | |
Re: Try here: [url]http://www.microsoft.com/express[/url] | |
Re: @sameer: Do not simply post solutions to peoples' homework assignments. That is not the point of these forums. We are here to help people learn - not do the work for them. | |
Re: @Onlineshade: You don't need to comment in every single thread that you read. | |
Re: @TheDumbestOne: Don't hijack old threads to ask vague questions. If you have something to inquire about, start a new thread and state your question more clearly. Closing this old thread. | |
Re: It sounds like you're trying to re-direct another site's content through your app after verification and I would question the legality/ethics of that? Perhaps you can clarify a bit, because this may be walking the edge of our Keep It Legal rules. | |
![]() | Re: That is exactly what your [iCODE]args[/iCODE] parameter to the main method is for. In the example you mentioned,"java test 2 3", args would include {2,3}. You can simply access them by index.[CODE]int a = args[0];[/CODE] |
Re: [QUOTE=zsgamer;1636153]Can you help me or tell me what to do? I don't want explinations because i don't UNDERSTAND ANY of it! Please, can you just help me....[/QUOTE] The forums are for [I]helping you[/I] work out [I]your [/I]programming problems. They aren't a "code on demand" service. If you aren't willing to … | |
Re: Take a look at the [URL="http://download.oracle.com/javase/6/docs/api/java/awt/GridBagConstraints.html#anchor"]anchor[/URL] property. Edit: You'll also need to look at the [URL="http://download.oracle.com/javase/6/docs/api/java/awt/GridBagConstraints.html#weightx"]weightx[/URL] property. You can read about it in the general notes for the [URL="http://download.oracle.com/javase/6/docs/api/java/awt/GridBagLayout.html"]GridBagLayout[/URL] class. | |
Re: Per our forum rules: [B]Do provide evidence of having done some work yourself if posting questions from assignments.[/B] Please post your current code, specific questions, error messages, pseudocode, or anything to demonstrate that you are making some effort towards solving this yourself if you wish to receive further help with … | |
Re: Unrelated to your question, but a general advice: do not do this [CODE]public class Frame extends JFrame{[/CODE]JFrame itself extends [iCODE]java.awt.Frame[/iCODE]. You're just asking for confusion and possible bugs by naming your class Frame. | |
Re: [QUOTE=evilserph;1050601]I'm writing a program for C++ and I must be missing something.[/QUOTE] Yes, you are missing the fact that this is someone else's two year old thread and it's in Java, not C++. | |
Re: I believe the code he is referring to can be found in [URL="http://www.daniweb.com/software-development/visual-basic-4-5-6/threads/315682/1349813#post1349813"]this post[/URL]. If you have further questions, please start a new thread of your own and post your current code and specific questions. | |
Re: You could check out [URL="http://izpack.org/"]IzPack[/URL]. | |
Re: I learned that reading completely random things that others claim to have learned today is not extraordinarily illuminating. | |
The End.