The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.

Re: Help with programe please

For tags, parse your code with the highlight wrap, put this before your code (I'm going to use * to represent [ and ] since I dont know how to stop parsing) *highlight=java* and this after your code */highlight*. And your code will look nice and colorful.

You should be getting a problem when you are trying to return accl, seeing how that variable doesnt exist.

However, I assume you mean to return acc, so the reason your getting this issue is because CurrentAccount is a BankAccount and BankAccountOutputVO is not. You are saying you want to return a BankAccountOutputVO object, but you are attempting to return a CurrentAccount object. By the looks of it, a BankAccount Object is just a BankAccountOutputVO Object with added methods. I'm not sure about your assignment specificiations, but can you make BankAccount extend BankAccountOutputVO? I actually dont even see the point in having any BankAccountOutputVO Objects.

Re: Help with programe please

we got given the bankaccounvo class. i am not sure if we can extended the class because the bankaccounvo class is a final class, and we got told not to edit this class. the code is not an assigment it be given to help us learn java.
sorry i tried to call the BANKACCOUNTVO but the also gave with the same error

Re: Help with programe please

Can you post the full error text and the code that is causing it?
before you said the error was a mismatch, now you say its a null pointer exception.
One is at compile time the other at execution time.

Re: Help with programe please

Originally Posted by aussiemcgr

For tags, parse your code with the highlight wrap, put this before your code (I'm going to use * to represent [ and ] since I dont know how to stop parsing) *highlight=java* and this after your code */highlight*. And your code will look nice and colorful.

To ignore all parsing, you can use the [noparse] tag (lol, I had to surround this with the noparse tag)