Joao Valencio Silva

Greenhorn
+ Follow
since Aug 10, 2018
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
2
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Joao Valencio Silva

Dear Paul Clapham and other experts,

Do you have any sugestions of what should be written at line 53 in order to make the code run correctly?

Any help will be appreciated.

Regards,

John

Dear Paul Clapham,

The error message is:

       Exception in thread "main" java.lang.Error: Unresolved compilation problems:
The method println(boolean) in the type PrintWriter is not applicable for the arguments (void)
Syntax error on token "int", delete this token

at Combinations.saveCombinations(Combinations.java:53)
at Combinations.main(Combinations.java:70)

If you had copy-pasted and run this code, you would see the same error message. You may copy-paste and run this code if you will.

Of course I have to fix the complier erros, and that's the reason why I am here asking the help of experts (It does not make any sense to post this message if I know how to solve the problem).

Regards,

John
As I sayd before, I think that the problem is at line 53.

Fell free to copy, paste and run the code.

Regards,

John

Dear Paul Clapham,

How did I know that?

Easy...

Hit the "Run Botton" and the file "combinations.txt" is created, but it has only one line with something that is not a number combination.

And it is also easy for anyone to know...  copy and paste this code and run it.

Looks like the problem is at line 53



Regards,

John
Hello Everybody,

I still need some help with the following code.

The code is not able to write the combinations into the file "combinations.txt".

Any help will be appreciated.

Regards,

John


Dear Jeanne Boyarsky,

So far, I have the following code. And I need that the temporary arrays (number combinations) be stored into column `combinations`.

Regards,

John

Dear Knute Snortum,

Thank you very much for your reply.

Could you please help me write the code to post the string sb to the column `combinations" ?

Although I have tryied a few times, I am not able to write correctly the method postToDb.

MySQL database named `database`, table called `numbers`, column `combinations`.

Regards,

John
Hello Everybody,

I have read many and many pages, but I still need help to make the number combinations created by the followindg code be stored in a specific column that exists in a MySQL's table (MySQL database named `database`, table called `numbers`, column `combinations`).

I know I have to create a connection to the database, but I don't know the correct place of the code to write, and I also don't know how to make the temporary arrays to be stored in the column `combinations`.

So, please, I am asking your help to change the output of this code, so that the column `combinations` be filled with the combinations generated.

Regards,

John


Hello ALL,

Please, I need help to change the output of the following code.

I need the output to be to fill the column named `combinations`, that belongs to the table named `table1` of the MySQL's database named `numbers`.

At the moment, the results are displayed to the console, and I need to change it to fill a specified column of a table in MySQL.

Regards,

John

5 years ago