3,927 Posted Topics

Member Avatar for secstr
Member Avatar for secstr
0
180
Member Avatar for daneuchar

@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.

Member Avatar for peter_budo
-1
490
Member Avatar for twistedspoon

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].

Member Avatar for Ezzaral
0
125
Member Avatar for crazins
Member Avatar for willywhomperz

Perhaps you could elaborate on "a few failures" rather than expecting people to guess?

Member Avatar for Ezzaral
0
173
Member Avatar for anuj_sharma

If you wish to initialize a new array like that you will need to state it like[code]new int[]{ ... }[/code]

Member Avatar for Ezzaral
0
149
Member Avatar for anonymousi
Member Avatar for mohitj786

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.

Member Avatar for imyself
0
150
Member Avatar for agmolina90

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].

Member Avatar for agmolina90
0
310
Member Avatar for agmolina90
Member Avatar for Ezzaral
-1
10K
Member Avatar for autorunman22

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]

Member Avatar for Ezzaral
0
101
Member Avatar for Reverend Jim

[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.

Member Avatar for Dani
0
339
Member Avatar for Solunar
Member Avatar for anand01
Member Avatar for bobbywe

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.

Member Avatar for Ezzaral
0
120
Member Avatar for sensei punk

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.

Member Avatar for sensei punk
0
92
Member Avatar for himerus
Member Avatar for Ezzaral
0
2K
Member Avatar for fashxfreak
Re: help

Closing. Please refer to the thread linked by Momerath. @fashxfreak: Do not create multiple threads for a single question.

Member Avatar for Ezzaral
0
77
Member Avatar for glamourhits

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 …

Member Avatar for glamourhits
-1
162
Member Avatar for jingda

It's currently optimized for the key phases "Thanks for sharing" and "Do SEO to get backlinks to ur site."

Member Avatar for ggeoff
0
555
Member Avatar for gispe

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.

Member Avatar for Ezzaral
0
165
Member Avatar for darwin_nacional

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.

Member Avatar for Ezzaral
0
155
Member Avatar for taga1989

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]

Member Avatar for muthu@tent
0
153
Member Avatar for maverick420

Of course it does, because there is no ".awt.Rectangle" class. Check the class' package again.

Member Avatar for dimasalang
0
533
Member Avatar for willywhomperz

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 …

Member Avatar for dimasalang
0
410
Member Avatar for alpa shah
Member Avatar for Anuradha Mandal

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.

Member Avatar for smferoz
-1
119
Member Avatar for esdel

> Only several small once, written by people who don't know C++. Java is for beginners, Spoken in true ignorance.

Member Avatar for jwenting
0
200
Member Avatar for isebas

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.

Member Avatar for isebas
0
243
Member Avatar for waqar3

> cannot work That's not much to go on. Someone would be more likely to help if you clearly stated what the problem was.

Member Avatar for Ezzaral
0
174
Member Avatar for Jessurider

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.

Member Avatar for Ezzaral
1
156
Member Avatar for fire eaters
Member Avatar for nickliutw

Post the stack trace of the errors. They will tell you exactly what the errors are and what line they occur on.

Member Avatar for nickliutw
0
152
Member Avatar for chamnab

@Onlineshade: You do not need to post a useless comment on every single thread that you drag up.

Member Avatar for Onlineshade
-2
81
Member Avatar for NeeharikaSingh
Member Avatar for NeeharikaSingh
0
62
Member Avatar for Onlineshade

@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.

Member Avatar for Ezzaral
0
116
Member Avatar for maxypro

@Onlineshade: You don't need to comment in every single thread that you read.

Member Avatar for Onlineshade
0
185
Member Avatar for shxrainz
Member Avatar for slyfox

@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.

Member Avatar for Ezzaral
-1
221
Member Avatar for warlord902

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.

Member Avatar for warlord902
0
421
Member Avatar for BobTheLob

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]

Member Avatar for Ezzaral
0
122
Member Avatar for zsgamer

[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 …

Member Avatar for Ezzaral
0
1K
Member Avatar for superjj

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.

Member Avatar for superjj
0
172
Member Avatar for muzamilsw10

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 …

Member Avatar for NormR1
0
221
Member Avatar for sealxlion

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.

Member Avatar for mKorbel
0
169
Member Avatar for comp_sci11

[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++.

Member Avatar for gihariwathsala
0
1K
Member Avatar for arvin2006

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.

Member Avatar for emond
0
3K
Member Avatar for Upoma
Member Avatar for Shanti C

I learned that reading completely random things that others claim to have learned today is not extraordinarily illuminating.

Member Avatar for Netcode
0
925
Member Avatar for -Renn
Member Avatar for jingda
0
103

The End.