Questions tagged as 'java'

1
answer

Intellij, Spring Boot and AngularJs

I'm running a project Spring Boot e AngularJs no Intellij and I'm trying to access the webapp folder by browsing (l ocalhost:8080/nomedapasta/index.html ), but it's giving error    (There was an unexpected error (type = Not Foun...
asked by 02.10.2016 / 16:11
1
answer

Make an INSERT with integrity constraint

I have two tables: Person table: CREATE TABLE T_AM_OME_PESSOA ( cd_pessoa NUMBER (8) NOT NULL , nm_pessoa VARCHAR2 (60) NOT NULL ) ; ALTER TABLE T_AM_OME_PESSOA ADD CONSTRAINT PK_AM_PESSOA PRIMARY KEY ( cd_pessoa ) ; and forum table: C...
asked by 15.10.2016 / 05:15
1
answer

How to display the values of an ArrayList separately?

class Principal { public static void main(String[] args) { Scanner entrada = new Scanner(System.in); ArrayList colecao = new ArrayList(); for (int i = 0; i < 3; i++) { for (int j = 0; j < 2; j++) {...
asked by 21.04.2014 / 01:08
1
answer

Bibloteca for Processing [closed]

I have the source code below, but to function I need a library I can not find, what can I do to solve it? import ddf.minim.*; import ddf.minim.analysis.*; import processing.opengl.*; import javax.media.opengl.*; import netscape.javascript.*; i...
asked by 29.04.2014 / 19:25
1
answer

Validate blank fields

I have a form with 3 fields to be filled and stored in a bank. One of the fields is populated by the system the remainder by the user. boolean isInserted = myDb.insertData(editNome.getText().toString(), editVeic...
asked by 19.06.2016 / 17:35
1
answer

Difference of dates with calendar in a TextField

I'm developing a hotel system and would like to automate some features in the system. I would like, when you select two dates being dataEntrada and dataSaida using Calendar, make the difference of days in a TextField name...
asked by 28.04.2016 / 00:57
0
answers

Problem with datatable edit with inputNumber extension

I am trying to use datatable with edit with inputNumber of extensions, but when changing, the value is not sent when pressing enter. I took the primefaces example link to do the tests. I just changed the type year to bigdecimal to run with inp...
asked by 27.12.2018 / 20:40
0
answers

Help Commons-Mail Mass Mailing

Hello I am testing a code that I plan to implement soon. The question is about SimpleEmail from the commons-mail library. When I use it to send e-mail by typing directly into the code. So: SimpleEmail email = new SimpleEmail();...
asked by 27.12.2018 / 19:01
0
answers

How to Monitor Streaming Upload in MediaPlayer

So, I'm creating the media player. Everything works. Now I would like to implement the streaming upload progress counter. I'll post my whole code for you to take a look at. Note that even if you implement OnBufferingUpdateListener i...
asked by 27.12.2018 / 20:29
1
answer

SQLite giving "near" CREATE error: syntax error (code 1): "[closed]

Does anyone know what's wrong to be giving this error? I/System.out: ERRO 1 :android.database.sqlite.SQLiteException: near "CREATE": syntax error (code 1): , while compiling: CREATE TABLE tbcliente ( IdCliente int(11) NOT NULL, IdEmpresa int...
asked by 27.12.2018 / 19:34