Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

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

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

If you wish to initialize a new array like that you will need to state it like

new int[]{ ... }
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Your expectations are completely unreasonable. You don't know Java, you don't know anything about Android, and you want to create a complex application with them. Do you see any issues there?

If you do want to start working on this, start with Hello World with the Android SDK: http://developer.android.com/resources/tutorials/hello-world.html

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Posting in the C++ forum probably isn't the best start. I'll move it to Java and recommend you take a look at the Starting Java thread stickied prominently at the top of the forum.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You are able to edit posts within 30 minutes of submitting them, if that is what you are asking.

There is an "Edit" button next to the post.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Sharing ideas is good, but try to use examples, hints or explanations to guide them to the solution rather than writing the exact code for them.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

If you want to pass an instance of your MyDate class as a parameter, you'll need to create it with 'new' keyword: new MyDate(...) .

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

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.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

> so all i need is a simple code to make what seems to be a complex task
It is a complex task. What makes you think there is a simple code for it? And why should someone else write it for you?

This is your project and you need to make the effort. Ask specific questions when you get stuck. Have you done any Android programming at all? Have you downloaded the SDK yet?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Compare your use of the Student constructor in your main() method with the constructor that you defined in the Student class. The compiler is telling you they are quite different.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You could use clipping or alpha compositing to achieve that. Both are covered here: http://download.oracle.com/javase/tutorial/2d/advanced/index.html

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Java is case sensitive. Check the spellings of your classes.

Also note that by convention class names should start with a capital letter.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You haven't asked a question.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Paste the exact error message. It tells you what it cannot resolve.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

@hemu12: This is not a code-on-demand service. Please be aware of our forum rules about showing some effort:
Do provide evidence of having done some work yourself if posting questions from assignments.

Also, do not hijack others' threads with your questions. Start a new thread of your own and state your questions clearly.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

> Or is its only purpose to allow me to right click and select "copy link location"?
That's the only purpose that I'm aware of. It allows you to link directly to the post.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Disarmonia Mundi - Last Breed

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You need to post specific questions as you tackle each of those steps.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

> Mange to get aother scipit from a friend but it will not let me add any times ...

No, you've just copied a piece of script from another forum with no idea what it does and you expect someone to hand you an answer.

I think you've wasted enough of everyone's time with this. Thread closed.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

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.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

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.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Resurrecting a very old thread to post random, completely unrelated code fragments is not exactly helpful.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Closing. Please refer to the thread linked by Momerath.

@fashxfreak: Do not create multiple threads for a single question.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

@bobbywe: What does your post have to do with this old thread you have resurrected?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

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 other peoples' valuable time.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

So now you know that 'cnn' is null. The next step is to figure out why it's null.

mKorbel commented: i love similair answerer, not joke +1 +9
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Either replace this line

JOptionPane.showMessageDialog(null,e.getMessage() + "error en cargarComboProvincias");

with

e.printStackTrace();

or add the stack trace before/after your dialog message.

You are suppressing most of the useful debugging information from the exception.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

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.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

All I see is an assignment with no effort demonstrated. What have you tried so far? What have you thought about trying? If you don't have real code yet, how about some pseudocode? How about a specific question?

Per our forum rules:
Do provide evidence of having done some work yourself if posting questions from school or work assignments.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Did you search "email jsp" on the forums?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

The errors are pretty clear. The compiler can't find the variable 'box'. Can you?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

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

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Closed.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

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.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

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

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You can also rotate the current graphics context with the .rotate() method of the Graphics2D class.

This part of the Java tutorial discusses these transformations.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You would have a much better idea of why it wasn't working if you did not do this

}catch(Exception e){}

At least print a stack trace of the exception.

}catch(Exception e){
  e.printStackTrace();
}
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You will need to collect and remit sales tax on sales made in your own state.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

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

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

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

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I'm fairly aware of the rules, thanks.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

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

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Moving to Javascript.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Agreed. Closing.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

> im clueless on how to get it to see the amount of grades that were entered
Seems like a fairly simple task for a variable.

Edit: Ah, well so much for letting you see the solution for yourself, since hfx642 has decided to just hand you a fix.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Seems like counting them might be useful?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You are dividing by the length of the grades array, but not all of those elements have a value. You need to divide by the actual number of entries the user has added.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

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

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Yeah, sorry for that. In my typing haste I totally ignored the different types.