Posts by Kevin Ricci • 165 points
13 posts
-
-1
votes1
answer28
viewsQ: Spring: how Jackson can format a composite Json response into objects
Well, I’m doing a Spring project along with Spring-cloud-openFeign for integration with a Fipe api to access car values. See the class: @Service @FeignClient(name = "FipeService", url =…
-
0
votes1
answer526
viewsQ: Async/Await, where are you wrong?
const url = 'http://files.cod3r.com.br/curso-js/funcionarios.json' const axios = require('axios') const busca = () =>{ return new Promise((resolve, reject) =>{ try{ const funcionarios =…
-
1
votes3
answers3761
viewsQ: Async/Await returning Promise{<pending>}
const url = 'http://files.cod3r.com.br/curso-js/funcionarios.json' const axios = require('axios') const busca = () =>{ return new Promise((resolve, reject) =>{ try{ const funcionarios =…
-
2
votes1
answer594
viewsQ: Javafx Tableview setting values to Tablecolumn
I ended up finding a problem that I believe is trivial but I don’t know how to solve. I have a class Seller who has an association with another class: Department. And I need a Tableview that…
-
-2
votes1
answer127
viewsQ: Exception java.lang.Numberformatexception (files)
Guys, by what I checked this code is all correct, including after the String[] linha = arquivo.split(","); if we give a System.out.println(linha[0] + linha[1] + linha[2]) he returns right TV LED…
javaasked Kevin Ricci 165 -
5
votes2
answers1319
viewsQ: Just take a commit from a github project?
I’m following a step-by-step project of a course, there they make a video lesson and at the end of it they commit to the github with the content made of that project in that class... In order to do…
-
2
votes2
answers156
viewsQ: How to "fix" an exception?
We can treat an exception thrown by a line of code in order not to let the program break, but how we can fix it? Scanner sc = new Scanner(System.in); try { String[] vect = new String[1]; vect[0] =…
javaasked Kevin Ricci 165 -
1
votes1
answer260
viewsQ: Upcasting and Downcasting
I know that Upcasting is to convert a subclass object to the superclass and Downcasting is to convert a superclass object to the subclass. But in relation to the loss of values and the like, as it…
-
2
votes1
answer340
viewsQ: How to create Java constants?
A java constant cannot be changed, but can be assigned an initial value via another variable ? For example, if we have in our program a method that hypothetically calculates the import rate of a…
-
1
votes1
answer115
viewsQ: Java.lang.Nullpointerexception because of a list
Well, I’m studying java and I was seeing composition, so I decided to do some things: Overview of the system : You want to make a system of bank account registration, and each account has the name…
javaasked Kevin Ricci 165 -
0
votes2
answers166
viewsQ: Vector (array) log-in validation. java
I’m studying vectors in object orientation and decided to do a little program to put some things into practice. It consists of making the record of n vectors that will be bank accounts with name,…
javaasked Kevin Ricci 165 -
4
votes3
answers81
viewsQ: Difference in arithmetic and assignment operators practice
package entities; public class Product { public String name; public double price; public int quantity; public double totalValueInStock() { return price * quantity; } public void addProducts(int…
-
0
votes1
answer1971
viewsQ: How to make a program calculate the area of several objects separately using the values given by the user (scanner)
I am new here and new in programming, I believe that the best way to establish the concepts and learn is in practice. So I tried to do some basic programming on Eclipse (also use Intellij) and at…
javaasked Kevin Ricci 165