Posts by Patrick Santana • 286 points
15 posts
-
0
votes1
answer27
viewsA: What is the correct way to recover an Arraylist<Long> from the firestore cloud?
As the return of the API is already specified, you can do as follows: List<Long> longs = (ArrayList<Long>) task.getResult().getDocuments().get(i.get()).get("longsArray");…
-
0
votes1
answer174
viewsA: How to concatenate an invoked String from an xml file with a variable?
For the application to access the string value, use the following method: String string = getString(R.string.hello); That is, in your code, change the first parameter: gas.setText(String.format("%s…
-
0
votes2
answers311
viewsA: How to subtract 2 hours string
You have to convert your time into a format where you can calculate. One way is this: String hora_inicio = "14:20"; LocalTime localTime = LocalTime.parse(hora_inicio,…
-
0
votes3
answers983
viewsA: Check if an element exists if the page is loaded. (Selenium)
One way to accomplish this is to use ExecutorService and Future. Follow example of code: ExecutorService executor = Executors.newSingleThreadExecutor(); Future<Boolean> handler =…
-
0
votes1
answer266
viewsA: First faces problem when converting an Enum
Rodrigo, This is because br.com.modelo.enumerados.Situacao.Bloqueada does not exist. What exists is br.com.modelo.enumerados.Situacao.B. In your logic, you should not manipulate the Enumeration…
-
0
votes1
answer268
viewsQ: jEnv alternatives for Windows
Currently use jEnv for switching between Jdks on different client projects, but this tool is only for Linux/Unix/Mac OSX. With it, I can easily within each project configure the use of JDK 8.11.14…
-
0
votes1
answer31
viewsA: Debug Intellij using Classpath with Project
In your case, follow these steps: Abra Project Structure, basically the Project Settings. Select Modules. You must be seeing this screen: In Sources, you can add to your other application using Add…
-
0
votes2
answers1098
viewsA: Responsestatusexception - Spring boot - Return of the message
By default, sprint boot does not show this variable. You can check the default values here: Spring Boot Reference Documentation. To solve this problem, just add in your application.yaml: server:…
-
0
votes3
answers2837
viewsA: How to rename a java file
Another way to rename the file is by using the library Commons IO apache. Example: FileUtils.moveFile(FileA, FileB); To read the file, you can use the getFile of the library itself:…
javaanswered Patrick Santana 286 -
2
votes1
answer59
viewsA: How do we know which object another object belongs to?
There are several ways to solve your problem: Minimal modification For this possibility I tried to modify the minimum of your code so that you can understand better. You should link to Pessoa at the…
-
1
votes1
answer815
viewsA: How to find the git address of an already created repository?
You can use two ways to get the address: Execute command below: $ git remote -v Opens the configuration file in the directory .git: $ cd .git $ more config One of the two solutions will solve your…
-
3
votes1
answer225
viewsA: I have a problem with my Github repository - Empty directories
Check if inside your folder (backend and frontend) have a directory . git. If you have, it’s considered a nested Git, because SHA1 is registered with a gitlink. What you see on Github is gitlink.…
-
0
votes5
answers691
viewsA: How to delete a deleted Github repository?
Respositories are available for 90 days. After this period, they will be permanently removed. More details here. Below the extracted stretch. Please also keep in mind that: Deleting a private…
githubanswered Patrick Santana 286 -
1
votes1
answer558
viewsA: Nothing happens when running Java project in Intellij
Your project is not configured correctly. The red symbol in the class name says you are not considering code. Modify in File > Project Structure > Modules Check to be the src that is correct.…
-
1
votes1
answer186
viewsA: Error @Postmapping @Manytoone settando "usuario_id" spring boot
In your example, you initialize the objects lancamentoEntity and usuarioEntity in his method. First, the usuarioEntity is not required in the method signature. The second step is not to reset the…