No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Computer Science student, trying to learn as much as possible.
5 Posted Topics
Re: See closely here: [CODE] for (years=0; total < goal; years++){ System.out.print("The number of years you must invest to meet your goal of $ " + goal + " is " + years + " years."); }[/CODE] years is declared to be the control variable, though it is never tested if … | |
Hi all, lets say for example I have the following code [CODE]char *fname = "John"; char *lname = "Doe"; char *query = "SELECT fname, lname FROM table_name;"[/CODE] The last statement won't work, so my question is how to pass the fname and lname variables to the query? | |
I'm trying to solve this problem -> [URL="http://www.hpcodewars.org/past/cw2/problems/PROB15.HTM"]http://www.hpcodewars.org/past/cw2/problems/PROB15.HTM[/URL]. Or should I say I'm completely unable to generate any ideas how to solve it, so I'd like to have some guidance on what to read or what kind of technique to use. I don't want a solution just some guidance. Thanks … | |
Re: I made some changes to your BankAccount class. I suggest you revise your program logic though, because somethings are quite peculiar. [CODE] import java.util.Hashtable; import java.util.Enumeration; import java.util.Vector; public class BankAccount { private Hashtable<String, String> BankAccounts = new Hashtable<String, String>(); // you have to set a type when you initialize … | |
Re: The problem is in that when you first declare the arrays: [CODE]double[] monthlyPmt, principal, loanPmt, ratePmt, newPrincipal;[/CODE] You then in the actionPerfromed() method again say [CODE]double[] monthlyPmt[] = new double[...][/CODE] This is not needed. just remove the doble before that it should be: [CODE]monthlyPmt[] = new double[...][/CODE] Here is a … |
The End.