Posts by Pedro Henrique • 75 points
8 posts
-
2
votes1
answer64
viewsQ: Nullpointerexception when reading Jsonarray passing String
This is my code, which gets a JSON format string from the url https://servicodados.ibge.gov.br/api/v1/localidades/estados When extracting data according to this class/method public class…
-
2
votes1
answer1024
viewsQ: Put Maven Local Project as Dependency on Gradle Project
I have this Maven project that has all the application domain classes and logic. Then I created an external Gradle test project where I do system testing with Selenium Webdriver. In order not to…
-
0
votes1
answer495
viewsQ: Target Unreachable, Identifier [usuarioMBean] resolved to null
I have a problem trying to log in to my java web application. As you can see below, there is the stacktrace of the HTTP Status 500 - Internal Server Error error. I’ve tried a few things, such as…
-
-2
votes2
answers1035
viewsQ: Listing files from a folder
Hello I am using Jfilechooser to pick up files on the system. Only now I need to use Jfilechooser to select folders and add all their contents in the program. I used DIRECTORIES_ONLY and it worked.…
javaasked Pedro Henrique 75 -
1
votes1
answer516
viewsQ: Creating music player application with Jlayer
I am trying to create a Java application that receives a song through JFileChooser and add this song to a list (ArrayList<File>). But when accessing the file array.getindex(0).getPath(), the…
-
0
votes2
answers714
viewsQ: Separating substrings and storing in C++ variables
So I created a function that reads a text file and stores, line by line, in a string array by removing commas. The file entry is : add $t2, $t3, $t4 sub $t5, $t6, $t7 addi $t6, $t7, 4 Applying the…
-
0
votes1
answer195
viewsQ: Struct with char vector
So guys, I created this struct typedef struct{ int inicio; int tamanho; int fim; char *elementos[50]; }Fila; And I intend to create a char vector, just as I have created several times an integer…
-
1
votes1
answer440
viewsQ: How to order a struct within a struct
I am wanting to do ordering of a struct that is referenced within another struct: Detail: can be a sort using Selection Sort typedef struct{ int tipo; char dispositivo[50]; int prioridade; }Perif;…