Questions tagged [java-console]

20 questions
-1
votes
2 answers

How do I check java console log.?

I am running java application and because of some error it gets closed, I want to check the error in log. How can I reopen java console with that log or is there any other way to check the log of java console.?
Riddhi Makwana
  • 29
  • 1
  • 1
  • 5
-2
votes
1 answer

Is there Java Control Panel in java -16?

Hi am new to java and I was using java 15. Then a newer version of java came and it was 16. I downloaded it and installed it in my computer. Then I found that you can update java using java control panel. But I can't found it. Can anyone help me? Is…
user15537709
-2
votes
5 answers

Sum a variable with a random number in the loop

I am generating a random number between 1 and 6. And I have an integer value with a value of 0 (int number1 = 0;). I need to add them in a loop. Each round of the loop the random number will be generated again and add on top of the previous sum. How…
-2
votes
2 answers

How to check element duplicate in Map java

I have a function, which allow input key and value into Map. here my code import java.util.HashMap; import java.util.Map; import java.util.Scanner; public class MapDemo { public static void main(String[] args) { Scanner input = new…
-3
votes
2 answers

How to write inside existing json node without loosing data in java?

I am developing a java console application and using JSON to store data. This is my query. I want to add data inside the existing node without losing data. I have this Node: { "course" : [ ], } Now I want to write new data inside course,…
Hannan Max
  • 49
  • 6
1
2