Its a learning experience just doing it.. Just because you arnt top of the list does not mean you didnt learn something
Type: Posts; User: ppme
Its a learning experience just doing it.. Just because you arnt top of the list does not mean you didnt learn something
Okay.. using printlns this part of my code NEVER executes
Object checkHelp = board[row][col];
String s = checkHelp.toString().trim();
if(s.equals('1') ||s.equals('2') ||s.equals('3')...
Because this is a recursive method debugging with printlns is an extremely difficult thing to do as the console window just gets flooded with printlns, I was hoping someone else on here could...
This code solves a Sudoku puzzle with no starting values perfectly..
But if i then in some values to start with it moves them around to suit itself which cannot happen.
Can anybody see the problem...
Got it. Finally.
Can anyone see why my output wont match the correct output
Between the 2 methods below it should solve a Sudoku puzzle automatically,
Expected output is this : http://moritz.faui2k3.org/images/sudoku/default.png
My output the same but only with the number...
Your "amount" variable holds the amount paid on one particular day. So if you take this amount and minus 1 million form it.. the pay must be greater than 1 million if > 0 holds true.
Yup, ill look into it soon :). I am also only new to this forum as you can see, just suggesting what I think will benefit the community .
Just a quick suggestion that maybe there could be a forum where members can set a challenge and other members can compete against each other to create the best code?
For example, in my course we...
Account Number 100001-10 belonging to Benjamin Franklin
Initial balance = $1000.00
After deposit of $500.00, balance = $1500.00
After withdrawal of $1000.00, balance = $499.85
The balance...
total - 1mil > 0
{
tell users earned more than 1 mil
}
amount - 1mil >0
{
tell users more than 1 mil a day
}
New variable, "total"
total += amount;
jTextArea1.append( day + " " + pay.format(amount) + "\n"); Outside and Inside the loop! :) Sorry should of been more clear
Making "day" a global variable and putting this line : jTextArea1.append( day + " " + pay.format(amount) + "\n");
Before the for loop should also fix the problem.
Or an if...
Don't have the counter checker within the loop, because otherwise on the first char check, it checks the count <2 and finds it is false, then returns false, and the method terminates.
I see you...
.equals() not ==
I think..
I would add in a counter and use the isDigit() method and if there is less than 2 digits, return false.
More than likely not the best solution.. I have 3 semesters of java over me in college so...