Questions tagged as 'java'

1
answer

How to return an answer from sql?

This is my first post in a forum, so I apologize if I make a mistake. This is the following, I need to register a book in the bank, but before that, I would need to know if the author is already registered in the bank, or if not, I must regis...
asked by 01.06.2018 / 05:18
1
answer

SQLite with java, error

I have made a Database of Bank Accounts of a Bank, each of these accounts has its id to identify, and has its tipo , to know what type of account the user is accessing at that moment , type, it can have a current account and salary,...
asked by 13.06.2018 / 21:43
1
answer

Unhandled event loop exception

I've been updating my eclipse and I'm using the oxygen version. When I initialize or when I will check if it has updates of packages appears this message below and my tollbar does not appear. Does anyone have the solution? could help?    ...
asked by 18.12.2017 / 15:15
1
answer

Add values in a 3-dimensional array

How do I make the user add values to an array [] [] []? calendarioEventos = new Evento[dia][mes][hora]; for(int i = 0; i < calendarioEventos.length; i++) { for(int j = 0; j < calendarioEventos[i].length; j++) { fo...
asked by 29.11.2017 / 13:16
1
answer

Error in java code read GSON: java.lang.NullPointerException

I'm trying to read this file but when I run this error: Exception in thread "main" java.lang.NullPointerException at principa.Main.main(Main.java:61) but I do not know what is null public class Main { public static void main(Stri...
asked by 04.12.2017 / 02:32
2
answers

Error in code - ArrayIndexOutOfBoundsException

int[][] A = {{11, 7},{-20,-22}}; int[][] B = {{A[0].length},{A.length}}; for(int i = 0; i < A.length;i ++){ for(int j = 0; j < A[0].length;j ++){ System.out.print(A[i][j] + "\t"); } System.out.pr...
asked by 10.03.2018 / 15:37
1
answer

How to do a while without crashing the Java application

I'm building an application in college that needs to run a code for 2 minutes and minute by minute make an assessment of the system and the variables that are in it. I've already searched the internet, some say to use new Thread() others...
asked by 26.03.2018 / 19:46
1
answer

javac is configured and does not compile .class [closed]

javac is configured but does not compile to .class     
asked by 28.11.2017 / 12:21
3
answers

Convert Double to Integer

I'd like the value of "trees to reset" to appear with no point, nor zeros. In the situation below appears "180.0000000" and should appear "180". It is of type TextView , and would like it to appear in the Integer type. I have already tried...
asked by 12.10.2018 / 04:27
1
answer

GPS sensor locking when the sensor is off

I'm making an app that reads the GPS coordinates. When the sensor is turned on and working, the app pulls the information right, but when the sensor is turned off, the app hangs when I try to read the coordinates package com.example.dfabr.p...
asked by 24.09.2018 / 14:36