Questions tagged as 'java'

1
answer

when I save information in the table it only appears in the database and in netbeans it appears as a new column

Frame room import Datos.vhabitacion; import javax.swing.JOptionPane; import javax.swing.table.DefaultTableModel; import primero_lo.fHabitacion; public class Habitaciones extends javax.swing.JFrame { public Habitaciones() { initCompo...
asked by 20.06.2018 / 18:49
2
answers

cvc-complex-type.2.4.a: Invalid content was found starting with element 'class'

I'm opening a project in linux with IDE eclipse that was originally created in windows, with netbeans and ran perfectly. Now I see two errors: Directs me to persistence.xml . This error comes out:    cvc-complex-type.2.4.a: Inval...
asked by 30.10.2018 / 21:16
1
answer

method or code in android to know if the call went to voicemail

I'm looking through Android programming to know when a call is rejected or when a call is sent to voicemail. I am also looking for how I can know when the call is connected to the telephone service provider     
asked by 10.07.2018 / 22:23
1
answer

Help with a code condition

I have the following code. package p01; import java.util.Scanner; public class P01 { private String estudiante; private String nombre; public static void main(String[] args) { String[] estudiante = {"Nahum Deavila","Genesis Machado","Ju...
asked by 18.05.2016 / 15:47
1
answer

Problem with JSONObject on Android - Insert external bbdd records

Hi, I'm trying to insert 2 records in a bbdd and I really get an error that I can not understand since I'm a bit of a beginner in this, I would appreciate if someone could give me a cable indicating if something in my code could be wrong . pub...
asked by 25.04.2018 / 11:17
4
answers

because it is the error java.math.BigInteger can not be cast to java.lang.long?

I am trying to connect a web service application with MySQL but when I want to connect MYSQL server I get this error.              
asked by 14.04.2018 / 19:28
1
answer

Read byte with System.in.read

I have this code: public static void main(String[] args) { try { int n = System.in.read(); System.out.println(n); } catch (IOException e) { e.printStackTrace(); } } If I enter...
asked by 27.04.2018 / 02:17
1
answer

Concatenate data correctly when doing a select in java to db

I was making some improvements to my small system and I get the doubt because I've always been concatenated to data in the where and not after the select, since now the question is to concatenate the selected table (db) and the pk (dni) entered....
asked by 18.03.2018 / 05:32
2
answers

JAVA, keyboard input, bufferedReder

Very good, I could be given a hand with this error, I need to be able to parse the input (whole) from the keyboard and pass it to an object /**Clase Main: **/ public class app { public static void main(String[] args) { Persona...
asked by 30.03.2018 / 16:37
1
answer

Call a FULL ARRANGEMENT of a class in a different class and use it in a FOR and IF cycle?

How can I send an array with values to another class, go through it (with a for) and validate each index (with an if) to send a message if it is complete or send an error message. It is a method in the class Validations that resiva the object of...
asked by 03.08.2018 / 03:29