Questions tagged as 'java'

1
answer

What is the difference between the Set and Map interfaces? [closed]

I want to know the difference between using a list with the interface Set < > and the Map interface < > which is better for me to access the data more easily?     
asked by 08.08.2017 / 22:34
1
answer

problem running java in window in system symbol

Having installed the jdk I get a message in the window of the    system symbol "javac is not recognized as an internal command or   external " I do not know what else to do but someone give me a solution     
asked by 05.12.2018 / 04:35
2
answers

Constructor {0} in class {1} can not be applied to given types

My query is because I create a subclass (childBook) that extends from the Book class, when I rewrite the constructor in the subclass I get an error, which I do not understand: Constructor Libro in class libro cannot be applied to given types;...
asked by 14.01.2016 / 21:04
1
answer

Compilation error: The method findOne (long) is undefined for the type UserCrud]

to see if someone can help me because I get an error in compiling the edit and delete and I do not know why it is The method findOne(long) is undefined for the type UsuarioCrud ] with root cause java.lang.Error: Unresolved compilation pro...
asked by 03.12.2018 / 13:05
1
answer

Show array by JOptionPane and pick up result

I have a problem. I want to show an array in a JOptionPane, I do it like that. String[] continentes = { "ANorte", "ASur", "Africa", "Europa", "Asia", "Oceania" }; JOptionPane.showMessageDialog(null, Arrays.toString(continentes)); So, I sho...
asked by 16.12.2018 / 22:14
1
answer

What does for (;;) {} mean in java

for example what does the for (;;) {} do here? which means the ;; inside the for? double parseExpression() { double x = parseTerm(); for (;;) { if (eat('+')) x += parseTerm(); // addition else i...
asked by 20.11.2018 / 05:47
1
answer

Clip Class when playing a .wav does not play sound

When playing a .wav file, sounds are not played, but in netbeans if: This is my code: public Clip clip; public void ponerMusica(String musica) { try { clip = AudioSystem.getClip(); clip.open(AudioSystem.getAudioInputStr...
asked by 26.11.2018 / 19:39
3
answers

Help with ArrayList in Java

Schedule a list using the ArrayList class The list must contain at least 8 attributes. So far I have the Class already created with its attributes, empty constructor, constructors, getter and setter and finally toString. My class is called Ca...
asked by 13.11.2018 / 19:37
2
answers

Create a board in Java

They let me do a project in Java that resembles the Minesweeper game, I have to make a board that has to take a square dimension, and also a character without uncovering and uncovered character, it has to look like the following: So far...
asked by 18.05.2016 / 00:26
1
answer

Retrieve a hidden value in html

I have a hidden attribute, which I put through a java method: <input type="hidden" id="url" th:value="${url}" /> And I want to put an input of type text whose value will be the value that is in the hidden "url" <input type...
asked by 14.04.2016 / 12:12