Questions tagged as 'java'

0
answers

INFO: Error parsing HTTP request header

When submitting a form, I was testing how much information I can send via HTTP. I am using Mysql DBMS. I have an application that runs several fields of type textarea. Example: a form with 10 textarea (I use a field limiter to validate the am...
asked by 29.04.2017 / 23:57
1
answer

Executing Expected Class When Starting Web Application

I have a class that would need to be run along with the web application every time it started. I would upload the application to the server and this class would need to be executed. This application is running on Wildfly, and is also using Sp...
asked by 17.04.2017 / 15:38
0
answers

Problems in the Api Youtube code - Import class

Good evening! I'm trying to do a search using the youtube API, however I'm having difficulty referring to a class: "com.google.api.services.samples.youtube.cmdline.Auth;". I'm not finding it on the internet. I ask for help in finding this cla...
asked by 17.04.2017 / 01:43
0
answers

Refresh row after Datatable event after CellEdit primefaces!

I'm updating a datatable cell, it has 3 columns, description, current price, and old price. I can normally call the bean to make the change and save in the bd. But I can not update the record in the datatable. I can not update the "row" of the c...
asked by 17.04.2017 / 15:15
0
answers

Stop processing in java

I have a processing with one class calling another. Example: I have the registry0100 . In it I call ED022 , ED021 , etc ... In this ED022 , I have some validations, for example: boolean achou = false; if (modulo.equals("2")) {...
asked by 18.04.2017 / 01:44
1
answer

refresh list view after audio

I am trying to refresh my list of songs when I record an audio, but it is not working, could you help me? public class MainActivity extends AppCompatActivity { private Button mRecordBtn; private Button mAtualizarBtn; private TextView mRecordL...
asked by 21.04.2017 / 18:33
0
answers

Differences between using typecast and wrapper class?

Hello, the activity proposal would show how many years the user would have, I wrote my code first so I could compare it with the teacher, it turns out that my first line was much smaller than the teacher. This is my code: int an = (int) txt...
asked by 22.04.2017 / 05:05
0
answers

How to optimize a power loop of 2 ^ n and (2 ^ n) +1 in java?

Good, I'm doing a job where I have to do tests on stacks, and the tests have to be done when I push and pop powers of 2 and powers of 2 plus one (1,2,3,4,5, 8,9,16,17, etc.) I have some code done: public static void testsForLinkedLists(int...
asked by 13.04.2017 / 15:46
0
answers

How to pass selected item between Activities

At the moment, I'm sure to make the item clicked on this screen link appears selected on this screen link     
asked by 20.04.2017 / 04:59
1
answer

Error with setOnTouchListener [closed]

Eae, I've been getting the second error while running an app on AndroidStudio /AndroidRuntime: FATAL EXCEPTION: main Process: com.example.vinicius.login, PID: 3519 java.lang.RuntimeException: Unable to start activit...
asked by 19.04.2017 / 19:45