Posts by Stacklysm • 329 points
5 posts
-
1
votes3
answers1181
viewsQ: How to access the elements of a list declared in a different class?
I have developed a code that generates a list when the following input data is informed: List size (or how many "Indexes") The values that will fill the said "Indexes". Values are collected within a…
-
3
votes2
answers1018
viewsQ: How to split elements of an array using the For loop?
Program Summary Good morning, I’m developing a calculator that asks the user for the amount of numbers that will be calculated, the operation and the numbers in question. To store the values, I use…
-
5
votes1
answer1734
viewsQ: Code for calculating 2nd degree equation returns "Nan" as roots
I tried to create a program that calculates the two roots of a second-degree equation. When I run my code, it asks for the values of a, b and c correctly, but when showing the result, it always…
-
1
votes1
answer58
viewsQ: Exception in Thread "Main" java.land.Nullpointerexception com.Login.Login.mai(Login.java:18)
Today I tried to make a login system (again), only this time I used a array one-dimensional to guard my values. When I ran my program, Eclipse had an error (null pointer to be more specific), my…
-
11
votes1
answer284
viewsQ: Doubt about the IF
Does the IF function only work with Integers or does it also work with String? I was trying to create a program that would ask if you are sure you want to create the password. You can check the code…