Questions tagged as 'java'

0
answers

Depth of queries with Spring Data Neo4j

I'm starting with Neo4j and I'm trying to make a query with the @Query annotation but it only returns the main object and the other related objects return them to null, as I can do to return the other objects. I leave the exam...
asked by 13.11.2018 / 23:59
0
answers

Activate alarm manager 5 minutes before scheduled

I am investigating with AlarmManager and until now it is activated according to the programmed. This is what I use intent = new Intent(mContext, AlarmReceiver.class); alarm.toIntent(intent); sender = PendingIntent.getBroadcast(m...
asked by 13.11.2018 / 16:14
2
answers

Dates with LocalDate

I need to enter a date using the command console with this format: dd/mm/aa eg: 15/9/2005 The things I can use are the library Scanner Y LocalDate How do I put the date in the cmd in this style: 15/9/200...
asked by 13.11.2018 / 17:12
3
answers

How to validate if there is an existing record in a list before being inserted in java

I have a problem I hope and you can help me, what happens is that I have a list that I extract from the database, and what I want is to validate before inserting, that if a record exists in the list that do not insert it This is my insert method...
asked by 13.11.2018 / 16:43
1
answer

Show part of the contents of a list in java

I am trying to show part of the content of a list that I have but I do not know how to do it. I have a list of facilities with 30 selection options but I want to see only 3, that is, I have this list for example: Fuel station Wheels Seating Boxe...
asked by 15.11.2018 / 08:04
1
answer

Exception in thread "main" java.lang.NoClassDefFoundError: javax / xml / bind / DatatypeConverter

I'm doing an application on a computer, we're 4 and everyone uses Windows except me (Mac). This application uses a database with MySQL . At the beginning I had JDK 10 , now I have the 1.8 (8) . I have two versions of NetBean...
asked by 13.11.2018 / 18:12
1
answer

Transform System.out.println to enter it in the graphic part

Good friends programmers, I have a situation: I am transforming a program that uses System.out.println to print on the screen and I must convert it into its consequent graphic part. Part of the code that I need to transform is: pub...
asked by 13.11.2018 / 21:36
0
answers

JComboBox to JTextField with ID of a Database

I want to get a data from a JComboBox to put it in a JTextField from the ID of a database. I perform the following method contained in the UtilsTable class: public static int getIdx(Object datos[][], JComboBox cmbx){ return Integer.parseInt(d...
asked by 13.11.2018 / 22:53
0
answers

Help: Can not be applied to given types

public class DAO extends Conexion{ private String Music; private String Titulo = "titulo"; private String Artista = "artista"; private String Album = "album"; private Espacios[] espacio; public DAO(String Music){ //Aqui...
asked by 13.11.2018 / 05:56
0
answers

Delete all items from a list and add them to another list

I have a method that removes nodes from a list until it is empty. What I need is that after I empty it, I add the elements that I removed to a new list. Here is the method: public void vaciarD(){ while(!estaVacia()){ //mientras que la list...
asked by 12.11.2018 / 06:11