Questions tagged as 'java'

1
answer

How to spice out the sequence of activities to start?

Hello. I have a doubt. I have an APP in which 8 Activities, including a Splash Screen Activity that displays my logo and then enters my APP. The Splash Screen is set to default, but I need to set another Activity to be started after the scree...
asked by 18.09.2017 / 20:43
1
answer

KeyPressed JavaFX problem

I wanted to trigger an event by pressing the F12 button, but I'm not able to make it fire any action even though I created it in code. Here's an example below. F12.setOnKeyPressed(event -> { if(event.getCode().equals(KeyCode.F12)){...
asked by 19.09.2017 / 16:33
1
answer

Values are being sent null

For some reason the arrays are being sent null in setListGrades, however inside the log shows the normal arrays. The API is being consumed correctly, so why is it null in sending this method? @Override p...
asked by 23.04.2017 / 17:28
1
answer

Read Json without having to "know" the JAVA keys

The problem is that I need to inform the professions and I wanted the json reading to be automatic without having to report ocup[1] = "jornalista" . I would like the json reading to be automatic. { "profissao": { "jornalista": [...
asked by 28.08.2017 / 13:29
1
answer

Generate columns with repeat Primefaces

I'm not able to dynamically generate these columns with p:repeat of Primefaces. Is there no way to do this in Primefaces? Or is there no way to do this? Is there a better solution? The problem is this, I have an array with the heade...
asked by 28.08.2017 / 22:44
2
answers

Android calendar with events

At the moment I only have this calendar. I'musingMaterialCalendarView<com.prolificinteractive.materialcalendarview.MaterialCalendarViewxmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/calendarView"...
asked by 01.08.2017 / 15:36
1
answer

How to calculate 2 ^ n and (2 ^ n) +1 in java?

I'm doing a job where I have to do some calculations with batteries and I need to do tests for two powers and two powers plus two, ie 1, 2, 3, 5, 8, 9, 16, 17 , etc. The power part of two is done easily, but how do I loop or cycle the powers...
asked by 13.04.2017 / 14:53
1
answer

Correct creation of tables

Given my classes where Encomenda inherits from Objeto : @Entity @Table(name = "objeto") @XmlRootElement(name = "objeto") @XmlAccessorType(XmlAccessType.FIELD) @AllArgsConstructor @NoArgsConstructor public class Objeto implements S...
asked by 07.04.2017 / 00:04
1
answer

Create directory and add files for later browsing on android

I'm new to the development area. mobile, I'm developing a simple app that uses the Tesseract-OCR library in Android Studio and I came across the following situation: I need to store some files in android for a query later. How and when...
asked by 31.03.2017 / 01:46
1
answer

Error entering data into bank

I'm doing a java system with postgresql database for client registration, any help is welcome to solve my problem. org.postgresql.util.psqlexception: ERROR: syntax error at or near "," Posição:50 Control class: public class ControleCli...
asked by 11.08.2017 / 05:56