Questions tagged as 'java'

1
answer

Compare two dates

I have two string containing dates dataSalva and dataDoDia and I'm wondering if dataDoDia and 5 days greater than dataSalva how do I do this SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");...
asked by 22.12.2014 / 14:11
2
answers

How to upgrade BD sqlite java android

How do I add a column in the database of my android java application without losing the data from the current database? My code: public DataBaseHandler(Context context) { super(context, DATABASE_NAME, null, DATABASE_VERSION); } // Creatin...
asked by 31.05.2014 / 00:30
1
answer

Execution flow of a try / catch / finally block

How does the execution flow in a try/catch/finally block work in the example below? public class ExceptionTest { public static void makeException() throws ExceptionAlpha, ExceptionBeta, ExceptionGamma { throw new Exception...
asked by 02.08.2014 / 18:40
1
answer

How do I make a ListView with components next to the text in each row?

Several current Androids systems have menus like the example below: PleasenotethatanywhereItapmyblueareaunder"Access to my location" it turns the switch on and off and enables or disables the block under "Location Sources" and also does the...
asked by 16.07.2014 / 15:51
1
answer

Is it wrong to show something to the user?

Well I'm starting now in the poo area, I saw in a class where I'm watching on YouTube that it was wrong Methods write something on the screen, and how would I show if something wrong happened in a particular action that the user did . Example...
asked by 27.06.2018 / 15:59
1
answer

Click event in a TextField conflicts as JOptionPane

I am learning how to create a sales system and I created this method to get information from a TextField and play within a table via the click of the enter button. I created a try-catch to handle exceptions, and if I enter the catch, it opens a...
asked by 17.05.2018 / 20:16
1
answer

How do I switch between the next element and the previous element of a ListIterator with just one click?

I have a list of words stored in my listaPalavra variable already initialized with values, of type ArrayList<T> : listaPalavra.add("Palavra 1"); listaPalavra.add("Palavra 2"); listaPalavra.add("Palavra 3"); listaPalavra.add(...
asked by 31.10.2016 / 02:11
1
answer

What's wrong with my threaded list?

I've implemented a linked list but when I enter 2 items, I remove the last one and add it again, for some reason it says the value is null. public class ListaDinamica<T> { private class Celula<E>{ E item; Ce...
asked by 09.09.2015 / 18:11
2
answers

From .NET to Java, which technologies or frameworks to use?

I currently have a .NET-based workflow with Angular JS and a possibility has arisen for a new project using Java. With .NET I use the following technologies: ASP.NET Identity Used for authentication and authorization. Managing access us...
asked by 25.03.2015 / 20:00
1
answer

How do I get the coordinates of a point at a certain distance from my location?

Speak people, I'm making an app, and in an activity of the precise app from my location give a "zoom" in the maps as the user slides a seekBar, according to the image. I've been thinking of using the Bounds feature in maps, where I can pa...
asked by 07.04.2015 / 14:43