Questions tagged as 'java'

2
answers

Go through String with a for loop and count the letters, doubts, Java

I'm stuck in an exercise and it does not work out. I put the statement and where I got stuck. The statement is as follows: "Make a program that asks me for a string (String) and take me by console all the words that have that string, in addit...
asked by 28.12.2018 / 21:07
1
answer

Matrix without repeated numbers (java) !! Boolean method does not work!

public static void main(String[] args) { // TODO code application logic here int tauler[][] = new int[3][9]; ordenarTauler(tauler); bombo(tauler); imprimirTauler(tauler); } public static void o...
asked by 25.12.2018 / 13:12
1
answer

How to obtain the properties of the parent container?

Good, I would like to know how to get the parent container properties, for example: If I add a panel to a JFrame I would like the panel to obtain the size of the component that is maintaining it or get its layout. Any method (s) to choose the...
asked by 29.04.2016 / 22:29
1
answer

Lanterna 3. How can i get keypad inputs like enter or F1?

In lanterna, how can I read keyboard inputs like Enter or F1? I need to be able to listen to the keyboard input at all times to take actions, as well as listen to the enter key to read the content of the textbox. public static void main(String...
asked by 29.04.2016 / 14:33
1
answer

Error: The module has not been deployed

I am reading this book about Java Swing and JEE, and I'm in chapter 9, in which you start to create a java web project, a database with a phone table, and the entity and session bean of telephone next to a .jsp simple form that uses a servlet...
asked by 27.04.2016 / 19:19
0
answers

Read Java file in real time [closed]

The problem that happens to me is that I need to make a java application that reads a flat text file line by line while the file is being updated. I explain a little better, the file will be constantly updated and will be writing lines and li...
asked by 17.12.2018 / 17:59
3
answers

Menu with different executions in java

I'm doing a class exercise, I'll give you the statement and I'll explain. Perform a program that allows us to accept numbers greater than or equal to zero per keyboard until a negative number is entered. At that moment the following menu will...
asked by 17.12.2018 / 20:25
1
answer

how to modify a database from the Jtable?

Hi, I'm good at netbeans, help me, I need to find a way to modify data from bd directly from the jtable of Frame and validate the changes by pressing a button. method that I used recently and does nothing ... public voi...
asked by 12.12.2018 / 16:15
1
answer

How do I do it so that instead of knowing the% of rows is that of columns?

import javax.swing.JOptionPane; import java.util.Scanner; public class Xnorux { public static void main(String[] args) { float array []=new float [3]; int SFil; int tabla[][] = { { 95, 45, 37,...
asked by 12.12.2018 / 12:35
0
answers

Booyer and Moore with Double linked list

Hello, I have already created my class and methods to have a double Linked But now I have to do the algorithm Booyer and Moore to be able to read that data and tell me the position of the matches that I found, this is my main Public static v...
asked by 12.12.2018 / 01:16