Questions tagged as 'java'

4
answers

Add element to List (Arraylist)

I am having trouble adding values that are in a List named Processes to the Aptos list. Always show only the last process, and duplicate. Even so, remove all previous processes. Code below: public void verificaTodosProcessosAptos(){ int...
asked by 26.09.2014 / 14:23
1
answer

How to do basic math operations?

I'm developing a Java calculator for a college assignment where you can do the four basic operations (addition, subtraction, multiplication and division) plus a square root of a number, but for now I've only been able to do the calculator sums u...
asked by 13.11.2014 / 17:25
1
answer

How to do a random search using JPQL script in JPA2

The idea is basically to look for an X number of persisted entities in a random way, and these entities can not be repeated. The question is, can you perform this type of search by creating and executing a JPQL script ?, or is it necessary to im...
asked by 02.10.2014 / 16:23
1
answer

How to set font size in PDF?

I am making a report using iReport this is ok, but in the application when generating PDF the font is not the same as the iReport preview, the font type is ok, I would like to know a way to set the font size to be displayed in the PDF.     
asked by 01.10.2014 / 23:09
1
answer

Limit application access in google play

Is it possible to create some criteria that make it impossible to update my application in the published google play? Current scenario: I have an Android sales force system and a Desktop ERP that exchange information. It turns out that...
asked by 07.10.2014 / 02:10
1
answer

function that wipes the VALUE of the field in the JSP

I need to insert a function in my JSP that clears the value of the input when the user clicks to enter the value, but I can not insert class into the input, nor is Placeholder accepted nor Onclick, could anyone tell me any way to do? <%@tag...
asked by 03.10.2014 / 20:13
1
answer

Method of ordering a vector of names

I'm trying to sort a vector of names with this method, but when I have lowercase letters and accentuate the names go to the bottom of the list, does anyone know a method that orders considering capital letters, lowercase, with accent? String no...
asked by 18.11.2014 / 17:49
1
answer

Read a TXT file, sort, and save a new Java file

I am doing a job for college, and I am not able to read the file and play the data inside an ArrayList to sort the data, my code so far public class Teste { /** * @param args the command line arguments */ public static void main(String[]...
asked by 19.11.2014 / 15:13
1
answer

Problem with camera android / java

When you open the Camera or attempt to take photo from the album, the intent that calls those functions is closed, I'll call with: Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); File f = new File(android.os.E...
asked by 15.09.2014 / 20:30
1
answer

Remove ActionBar Tab from Android

By% with_% the ActionBar tabs come with the blue indicator (how much is selected) and my question is how do I remove this blue indicator. I want to use icons in these tabs, but as the icon and blue indicator appear, I want to remove the indic...
asked by 01.09.2014 / 16:07