Questions tagged as 'java'

1
answer

Limit anagram hits - Java

I have a code that checks if the user typed an existing word in the anagram, but if he types the same word 10 times it counts as 10 hits, I would like to limit this to 1 time only. The code I have done is this: String palavra[] = {"BAR", "OLA"...
asked by 19.05.2015 / 05:22
2
answers

Insert selected SPINNER item in SQLITE

How to identify the selected item in SPINNER and insert it into the SQLITE database. I can do the insert in Sqlite using the data provided in EditText, but I am not able to create a way to do something similar with SPINNER. Code: @Ov...
asked by 17.04.2015 / 13:56
1
answer

Division into different methods

I'm learning in college to split the system into different methods each running a function. However I had a problem with the following code: import java.util.Scanner; public class Sistema_Bichara{ public static int Menu(){ Scanner...
asked by 22.04.2015 / 23:44
2
answers

How do I save app data to my smartphone?

In order to not depend on internet connection, can you save the app data in your phone? For example, when you first open select the language and in the next uses of the app it is not necessary to ask the language, but to search directly from...
asked by 24.04.2015 / 14:37
1
answer

Problem with the code structure inside the switch case

When choosing option 1 (easy) the program enters case 1 correctly, but when I choose the port (0, 1 or 2) it returns to the menu, the goal is that if the port is right, the next line with the new port sequence (second line of the array) and if i...
asked by 26.04.2015 / 13:59
1
answer

Exception p: ajax Unable to attach behavior to non-ClientBehaviorHolder parent

I'm using JSF, PrimeFaces in my Java EE project. When I use the PrimeFaces component the orderlist , it returns me an exception on the screen and I do not know what exactly it is, it happens the moment I put the <p:ajax> tag. Could...
asked by 30.06.2015 / 14:49
1
answer

How to make a control class for JDBC crud

How do I make a control class for a list method of my crud? The method of my dao class will return all the data set that have the same city. But this error occurs in my main class: DaoclassmethodpublicList<ViagemBean>getListaDestin...
asked by 03.07.2015 / 21:04
1
answer

Somewhat Multithead

I'm trying to make a multithreaded summation but the value is very dissimilar: the value that should be the sum of all numbers 499500 what is the result: 1561250 Main Class: import java.util.ArrayList; import java.util.List; i...
asked by 07.05.2015 / 15:11
1
answer

Export screen data to excel

I automated a customer registration test (performed on the web, internet explorer) and at the end it generates a protocol and another numeric code. I need at the end of the execution to save these two data, because soon after the system start...
asked by 07.05.2015 / 17:17
2
answers

Extract JSON array data on Android received by DataSnap

Good afternoon. I would like to know how I can extract the data received by the server using Delphi's DataSnap. I'm doing this, but it's returning an error: lista_versoes = dsProxy.getVersoes(); TJSONObject json_versao = new TJSONObject();...
asked by 15.03.2015 / 16:44