This might not be a right place to ask. I have a good experience as a java programmer with 4 years of experience in it. Now I wanted to move to android and I have never created anything of android or...
Type: Posts; User: myjava
This might not be a right place to ask. I have a good experience as a java programmer with 4 years of experience in it. Now I wanted to move to android and I have never created anything of android or...
Its a general question and you have to be more specific about it? Now more and more computing mobile to mobile and the companies making revenues through advertisement rather than product sale, making...
use try and catch Exception instead of the throwing one. I tried your code with try and catch and it worked. So use
try
{
}catch(Exception e)
{
return this;
}
this should work
if(e.getSource() == btnNxt). Use "==" here instead of "=" otherwise it won't work.
it should be if(e.getSource() == btnNxt)
{
Car mycar = new Car() //This is the new window that you want to...
did you change your displayInterest methods?
Replace that InterestCalculator7 with just "object".
like object.getPincipal()
Replace all in this methods and it should work.
Try my solution from scratch. I have tried it with code. It won't take long. I can't pose code here because of the regulations.
1. Take the user input as string
2. Select the digit at each place and save it into an array on integers. It can be done by
int numbers = new int[9];
for(int i = 0; i < 9; i++)
{
...
working on your program here. Taking some time but I am developing a solution for it.
This is one of the good links I got with java. I started with Starting out with Java by Tony Gaddis. Its pretty good book. The English is pretty simple and straight. I have used that book since...
Recursion simply means recurring again and again. In another word, it is function calling the function itself until certain condition is met. For example:- If you look at the Fibonacci...
What is your questions?
You need to study JAVA COLLECTION FRAMEWORK. Look at the link. It has all the materials you need to understand. It might be hard to understand for you at the beginning but you will have enough idea...
Also I think there is something wrong with you interest calculator. When you enter 25000 in principal amount and 15% APR, the interest paid is way too much. That doesnt happen in real world.
---...
I see you have already passed the information to the InterestCalculator7 class. Simply write a getter method in the InterestCalculator7 class. user object to call those data.
--- Update ---
you...
By studying your program I see that there are lots of things you didn't do quite well.
When you display you information, you are not displaying any data there, rather you are asking the user to...
There are different ways of solving this problem. It depends upon how you want your program or how does your professor wants it to be done. The starting point could be visualizing how your program...
I presume you know how to write class and methods in class. Some of the examples of what you are asking are:-
1. Creating a "book" class to be used in school library where each book has author,...