Questions tagged as 'java'

1
answer

Problems with 3 arrasy A, B, and C

The thing is like this: I have a array A[n] , with variable length, entered by the user, which is then filled position by position with a value that the user also enters. Now, what I did, is that even numbers that are within array...
asked by 15.11.2018 / 15:58
1
answer

Error running compositeDisposable in an Android fragment

I hope you can help me :) I've been stuck in this and some time. I am running an app that fills Mysql with data and when I try the method in an Activity it works normally, but when I execute it in a fragment it gives me an error when I execute i...
asked by 15.11.2018 / 15:52
0
answers

Mus Online game

We are implementing an online mus game, in Java, for which we have created several classes: Jugador , Carta , Mesa and Partida . In this last one we are stuck in how to create the methods of the game of the mus, as they...
asked by 15.11.2018 / 17:32
1
answer

How to know the number of strings in a String []?

Hi, I have the following problem, I am creating a class so that the file management is more user-friendly for an app that I am creating. The issue is that when trying to create a custom method to read and tabulate the data of a txt in a...
asked by 15.11.2018 / 18:28
0
answers

multiple query in JAVA - SQL

I am executing this query in java to a database in SQL, if I do the query in the following way, it runs without problems: String consulta= "SELECT * FROM Produccion.Transferido WHERE WO = '"+jTextIngresoWO.getText()+"'"; But I need the qu...
asked by 15.11.2018 / 15:39
1
answer

concatenate two outputs for each or make them into one java

Consultation I have two foreach each of 81 records listat = personNE.list(); listap = parametrosEspNE.list(); for(ParametrosEsp pe : listap ){ pw.prinln(String.valueOf(pe.getVALOR()+"|"));...
asked by 15.11.2018 / 17:58
0
answers

How to filter a Jtable that has columns with string, int and date?

I have a table that I want to filter, and it has columns of type string, int and date, how can I do it? thanks. I tried TableRowSorter sorter = new TableRowSorter < > (jTable.getModel ()); but I get an error.     
asked by 15.11.2018 / 20:49
0
answers

Folder path to external equipment

In a terminal with Windows I have a virtual machine with a CentOS to which from a Java application that I am running from the host machine I am trying to point to an address of a directory that belongs to the CentOS machine.    WalletUtils.ge...
asked by 15.11.2018 / 11:04
1
answer

You doubt about writing a file at random

import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.io.RandomAccessFile; public class Jugadores { public static void main(String[] args) throws IOExc...
asked by 15.11.2018 / 10:20
0
answers

When changing activity, data is reset

I have an application which contains a table to which you can add data, as seen in the images And to create a second activity I have this code public void metodo_anadir(View view) { Intent intent = new Intent(getApplicationContex...
asked by 15.11.2018 / 12:56