Posts by Luis Fernando • 81 points
8 posts
-
3
votes1
answer545
viewsQ: Change Jtextfield value from another class or automatically
I found some similar issues in the English version, but I could not resolve. I have a boiler class, with the following attributes: Boiler temperature; how much; Fire temperature; In this program I…
-
0
votes0
answers2263
viewsQ: Python stopped working visual studio code
I created 2 classes, being that one imports from another and gave error in the import. I searched the internet and told to go in the command palette and choose the interpreter (on my system only has…
-
0
votes3
answers1139
viewsA: Retrieve/locate object in arraylist
Glad you liked the way I put it. Organization is essential in life. I saw the various errors Articuno, I left to the end, because first I wanted to make the program work. It worked out your and…
-
2
votes3
answers1139
viewsQ: Retrieve/locate object in arraylist
I am making a small CRUD with the theme saving for study purposes. I created 3 classes: Save, Accounts and Canvas (UI Swing). On the screen I register an account with the attributes name, agency,…
-
0
votes2
answers493
viewsQ: Error Converting String to Numbers in Java
In my last post (do/while repeats the expression twice) was having an input overlay problem using the Scanner class, and according to the links placed in the answer, we cannot use nextLine() after…
-
0
votes1
answer120
viewsQ: While error in joption pane: loop
I’m having a serious problem with while in the following algorithm: You have a data set containing the height and gender (male, female) of 50 people. Make an algorithm that calculates and writes: 1…
-
2
votes1
answer1053
viewsQ: Adding arrays (vectors) with methods
I have an exercise to do: create a method where the user enters the values of 2 vectors, then create a method to sum the values of the 2 vectors and finally a third method that shows the new vector…
-
-1
votes1
answer57
viewsQ: Result 0.0 - even with Typecast or changing variable types
I have this method in the secondary class to calculate the median of a vector: public class Funcoes { .... public void setMediana(int[] valores) { double med; Arrays.sort(valores); int meio =…