Posts by Ronison Matos • 313 points
16 posts
-
1
votes1
answer24
viewsQ: (Java) Error while continuing to traverse TXT lines
good night! I need that even if it reaches the condition total_min < 720 He keeps going through the lines. The 720 are the total minutes before lunch, when reached should separates the activities…
-
0
votes1
answer59
viewsQ: (Java) Read TXT (input) and generate TXT (output) with organized information
I need to make the following logic: 1- Read a txt with several lines, each line has an activity EX: Walk 10min, Study 30min... (each activity in a row). 2- Half day lunch time. 3- Organize the…
-
0
votes2
answers4800
viewsA: Netbeans Project Upload on Github
A question, whenever I need to update the code in the repository I need to do step 8 "in the Git / Remote / Expand menu, select the Specify Git Repository Location radio box, in the input, paste the…
-
-1
votes1
answer80
viewsQ: Error renaming txt file in JAVA
Hello! I need to rename a file txt, that txt is scheme for system log. Each day has its own log.txt. I am using the following parameters to validate the file and rename, if the file exists and if…
javaasked Ronison Matos 313 -
0
votes5
answers578
viewsA: How to validate when Resultset does not find any value?
Thank you all! It worked using the answer from @Rodrigo Santiago in another question. if (resultSet.next()) { //Se passar ele vai estar na posicao 1 , já pronto para usar os getters do { //codigo }…
-
1
votes5
answers578
viewsQ: How to validate when Resultset does not find any value?
I’m trying to build a Java function pesquisarCliente where it must be consulted in the Database whether it exists or not. If there is more than one result you should return all records, if you do…
-
1
votes1
answer106
viewsA: (JAVA) Error returning record amount using SQL COUNT
** Solved: ** ResultSet result = stmt.executeQuery("SELECT COUNT(*) AS num_item FROM tb_temp_prod"); while(result.next()){ int teste = result.getInt("num_item"); System.out.println("Total: " +…
-
0
votes1
answer106
viewsQ: (JAVA) Error returning record amount using SQL COUNT
I’m trying to return the amount of record of a table, in this table I currently have 6 records but my Query returns only one, as if there were only one record. I need you to return the full amount,…
-
0
votes0
answers56
viewsQ: (Java) Error connecting to SQL Server Local
I am trying to get my project to connect with SQL Server Local, but it is showing the following error: run: Algo deu errado! java.lang.ClassNotFoundException: C:\Program…
-
0
votes1
answer83
viewsQ: (Java) Error saving multiple lines in a TXT file
I’m trying to record create a log file .txt. I can validate if the file exists using If, but I can’t record outside the if where the file was created. I’m a beginner and believe that the error lies…
javaasked Ronison Matos 313 -
0
votes1
answer468
viewsQ: (Android Studio) Webview loads the page and does not open
I am making an application that gathers some sites, but some of them keep clicking on Webview and does not open. As an example I will use the Urpay. I’ve seen this site being opened by another…
-
1
votes2
answers7988
viewsQ: (cmd) How to unzip files from a . zip by Windows cmd
I need help to unzip files . mdf and . ldf which is in a single file . zip, need to do this by Windows cmd.
-
5
votes1
answer1315
viewsQ: How to delete all files from a directory
I would like to know how to delete all files from a directory. Suppose I need to delete all files from the Test folder in C: test.
c#asked Ronison Matos 313 -
2
votes1
answer90
viewsQ: How to get the date and time of the machine to create a folder?
Hello! How best to get the date and time of the machine using C# and create a folder with the format 'DD/MM/YYYY HH:MM:SS' ensuring you never have two folders with the same name?
c#asked Ronison Matos 313 -
4
votes1
answer155
viewsQ: How to stop the SQL Server service using C#
I wonder if it is possible to stop SQL Server using C lines of code#. I have a C# application and would like to add a button to stop the SQL service or the instance, so I can work with the files.…
-
2
votes2
answers224
viewsQ: Delete string until it reaches the character and ":"
How to delete a part of the string until it reaches the ":" character. I was able to delete ":" using the code below: Example String: uma_phrase_random: Ronison string url = empresaweb2; string…