Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Start with using valid math symbols so that your program will compile.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Yes, a List of BufferedImages may be a useful way to go, especially if you wish to merge layers later or flatten to a single image.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Personally, I have no interest in playing with some tutorial to see if I can recreate "nothing happens". Perhaps someone else does. I can cause nothing to happen by just sitting here at my desk; it doesn't really help resolve your issue though.

Post your code and describe what isn't happening.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Your original code had no variable named 'years'. Post your updated code.

Note that you have defined more private variables than your instructor requested. He/she may only want you to include the ones called for.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Your class already contains the variables (yes, the private ones up top) needed to make the calculation, so you can use them directly and return the value.

A side note, check your constructor carefully and note that you're using the exact same names for the parameters and instance variables you're setting. It might have some consequences in your program if you don't properly qualify them. Check your class notes on that.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

So he asked for

//this method calculates and returns the Future Value.
double futureValue()

How does that compare to the method that you wrote?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Then he must have explicitly told you which methods to implement in your class. His tester class obviously works against a very specific interface and something about your own class is not matching up.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Check the method call parameters in the class he gave you versus the futureValue() method that you have defined. Do the parameter types match?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Have you checked the "Getting Started" thread over in the JSP forum? http://www.daniweb.com/web-development/jsp/threads/249070

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Double posted. Please refer discussion to the other thread in JavaScript: http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/384154/1654451#post1654451

Closing this one.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You'll need to open your output stream in append mode:
http://download.oracle.com/javase/6/docs/api/java/io/FileOutputStream.html#FileOutputStream(java.lang.String,%20boolean)

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

"nothing happens" is a bit thin to go on. What jars and what code?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Many of the software development forums have a sticky thread featured at the top for recommended resources on getting started with or improving one's knowledge of that language. VB.NET currently has no such resource listing.

I personally do not work with VB.NET, but if those who do would like to post recommended resources here in this thread I can compile such a sticky thread for the forum. It can be very helpful for both the newbies seeking resources and veterans who are tired of making the same recommendations for the seventy-fourth time. ;)

The thread itself will most likely be a work in progress that I will edit as necessary to keep it cleaned up and on-topic.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Sounds like your teacher wants you to learn it, so learn it.

Also, drop the "chat speak" and write in actual English. It's against the forum rules.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

The answer seems very clear: You should write the project in VB.NET.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I would assume that you would use your "studentmarks" class in your main method, but that's entirely up to you. I assume you have some assignment.

I just told you why it was not running.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You have to write it. A class needs a main() method if it's to be invoked externally

public static void main(String[] args){
...
}
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You have no main() method defined. You cannot run a class that does not contain a main method.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

No, I doubt he can because he simply copied and pasted it here from another post he saw elsewhere - which is why I have deleted it.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

@glamorhits: This is a direct copy of code that you found here: http://wiki.answers.com/Q/Inverse_of_matrix_in_java

It doesn't seem that you have put any effort of your own into this and simply want others to finish it for you.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

... and what is your specific question?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You're welcome to ask for help with specific questions in this section of the forums, but asking people to write code for you belongs in Web Development job offers.

We do expect people to demonstrate an effort on their own. It's not a code-by-request service.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

So this is a job offer?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Threads merged. Please don't start additional threads for a single question.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Moving to JS.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Okay, so what is your question?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Shower, coffee, drive - just another day of work.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You should not override the method isCellEditable on DefaultTableModel
but override it on the JTable itself

And what is your reasoning for that?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Please note this was posted nine months ago.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Consider that your series of "if" statements to evaluate the grade is outside of the loop where "Grade" is being entered.

Also be aware that you should use .equals() or .equalsIgnoreCase() to test string equivalence. Do not use == .

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Take a glance at this article from the OpenGL wiki about drawing 2D controls over a 3D scene: http://www.opengl.org/wiki/Viewing_and_Transformations#How_do_I_draw_2D_controls_over_my_3D_rendering.3F

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

@Curt1337: No, no one here will convert the chat server that you copied directly from Rose India to UDP so you can turn it in as a work product.

As Norm said, hire a programmer if you want someone to do your work for you.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You really should not stuff all that GUI code into your main() method, but that's another discussion altogether.

You can still get a reference to the class statically and use getResource like this

Main.class.getResource(...)
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Perhaps he means something more descriptive and meaningful than 'j'. If 'j' were being used as a line counter for example, using 'lineCount' would be easier to follow than 'j', which itself has no intuitive meaning.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

And J2EE if you're interested in the web/enterprise branch of Java.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I never bothered with it myself. Perhaps it may help you get that first real job, but beyond that your working experience will be more of a factor than certs in future work. I only know one person who bothered with the JCP and that was only because he was between contracts at the time and just looking for something to do.

If you do decide you'd like to take it, don't pay some prep company a bunch of money to train you for it. There are plenty of reference and practice exams available on the net.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

> And is OCPJP alone any worth?
It shows you can study for and pass basic tests. That is about all.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You haven't specified what you are having trouble with. What is it doing or not doing currently? Where do you believe the problem lies?

You can't expect people to just fix the code for you. You need to ask specific questions and make the effort to work through them.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

... and your question is?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

> Without how things differ it is difficult to advise on any sort of design.

Exactly. So it's odd that you declare anything "lazy". There aren't enough specifics to answer in detail and the OP never bothered to discuss it any further beyond the initial post.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

It should work fine then. It runs without any errors on my machine on 1.6. The error message reads as though you're running a version older than 1.5.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

What Java version are you running this on?

mKorbel commented: new battery included +9
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Post exact error messages. Don't expect others to search and guess.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

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

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Please clarify exactly what you are having trouble with.

diafol commented: That was incredibly polite of you +13
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You have to compare two different arrays of characters, which would require two loops, yes?

I only see a single loop in your function.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

It should also tell the line the error is occurring on.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

It also tells you which method invocation it's choking on. Read it closely.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

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

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Start by making a JPanel within a JFrame with a text box to enter a name, a button to submit it, and a list to display them.