Questions tagged as 'java-8'

0
answers

Monitor treadmill running on mobile phone

Context : Using the sensors of the cell phone, I need to define a running pattern on the treadmill to know the average speed and the distance covered. I created a program to print sensor values on the axis x , y and z , ba...
asked by 15.06.2018 / 22:43
0
answers

Spring Boot query does not return records

I'm developing a system with Java 8 and Spring Boot with JDBC accessing an Oracle base. When I make a query using the NamedParameterJdbcTemplate, it does not return any records, but if I copy the same query and search the Oracle client directly,...
asked by 10.04.2018 / 16:05
0
answers

How to change the contents of an inherited class variable?

I am developing a system of transactions for methodological purposes. I have the following classe mãe called Conta : public class Conta { private double _saldo = 0; private String _nome; private int _idade; pri...
asked by 28.02.2018 / 16:39
2
answers

Update fields of a class with sequential names

How to update the background color of 15 JTextField during a loop? For example, I have the following JTextField : txtEsp1 txtEsp2 txtEsp3 ... And I want to create a loop, to set the background of the 15 as white: for(int i=...
asked by 29.11.2017 / 14:15
1
answer

Operations between various classes

Well, I'm relatively new to programming in Java! It is the following I have a Super Class of User name of which there are 2 subclasses Citizen and Autarchy, within the class Citizen I have created an ArrayList that will guard the Prizes of this...
asked by 05.11.2017 / 04:08
1
answer

Remove the last value from an array

I have a basic college project and one of the requirements of exercise is to remove the last value from an array of integers. I am not able to do with the last value being removed without using an ArrayList, another specification would be to not...
asked by 06.06.2017 / 20:44
1
answer

Ucanaccess problem in Select with Between Dates

I'm having a problem while performing a query having as condition a period of two dates, this query in MS Access works perfectly however via code with the ucanaccess library I get the 'Unknow Token' error, I believe the problem is in the charact...
asked by 01.06.2017 / 15:08
0
answers

Error: HTTP Status 500 - org.json.JSONObject can not be cast to jdk.nashorn.api.scripting.JSObject

In my java system this error appeared: I'msweatingthePOSTMANtooltostudythecase.  HTTPStatus500-org.json.JSONObjectcannotbecastto  jdk.nashorn.api.scripting.JSObjectCode:importjava.io.BufferedReader;importjava.io.IOException;importjava.io.Pri...
asked by 25.03.2017 / 00:50
0
answers

Error trying to connect sql server 2014 with hibernate-core 5.2.7 Final

I'm learning java with hibernate. I'm using maven to manage the project. I get the following error INFO: HHH000206: hibernate.properties not found as below in the image (click on the image to get bigger). Theerrortracestackisthisaquijava.l...
asked by 13.02.2017 / 02:14
0
answers

Insert horizontal scrolling in line chart in MPChart Android

I'm using the MPChart Android library (v3.0.1) to draw graphics in my Android app, however I wanted to make my scrollable graph in X axis , this is my code: private void loadDadosGraficoLinha() throws Exception{ ArrayList<Peso> l...
asked by 02.02.2017 / 13:35