python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Variable not updating in Java
I'm writing a program in which the user enters n number of numbers, the program finds the sum of the digits of the entered numbers, and then prints the number which has the largest sum of digits.
For ...
Farenhyte
Votes: 0
Answers: 2
Scanner asking for input twice and only storing second input to an array
I'm making a switch case statement in java with conditions. If a person adds a project to the system between 2 and 12 months long, it will be added to an array. If the project duration is less than 2 ...
Aleo111
Votes: 0
Answers: 1
Ctrl-C for exit the program isn't working without enter
I was using Runtime -> addShutDownHook for closing application.
It works with an enter, but only typing ctrl+c doesn't do it's job. Is it because I opened scanner at the beginning of the class? Wha...
kzrt0123
Votes: 0
Answers: 1
Java CSV printing relevant information in relation to User input
my current code:
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.lang.System.Logger;
import...
Onek
Votes: 0
Answers: 0