Questions tagged as 'java'

1
answer

Problems with Image in JLabel

I'm doing a simulator and I'm trying to put an image in a JLabel and then that JLabel add it to a JFrame with a background image, the frame with the background image is in another class, the problem is that when I execute the program does not ap...
asked by 16.05.2018 / 22:52
1
answer

Help with my converter to csv

I am doing a converter of xsl and xlsx to csv but I am having problems with the dates. When a date comes to me in one of the cells, does not it remain in dd/mm/yyyy , if not change it to mm/dd/yyy , any solution?...
asked by 30.05.2018 / 07:45
1
answer

Compare equal values in two ArrayList java

If I have two ArrayList different in my code as I can do to see what values are equal for example: ArrayList a=new ArrayList(); a.add("Juan"); a.add("Pedro"); a.add("Luis"); ArrayList b=new ArrayList(); b.add("Carlos"); b.add("Luis"); b...
asked by 08.06.2018 / 17:14
1
answer

The Most Efficient Way To Create A DatePickerDialog

Which is the most efficient way and with less amount of code to create a DatePickerDialog type object and that returns the date but implemented for a function String CrearDialogoFecha() { //Aqui el objeto tipo DatePickerDialog DatePickerDia...
asked by 17.05.2018 / 01:01
2
answers

Passing data from a broadcastreceiver to an activity

I have the following problem. I'm trying to send data from BroadcastReceiver to an activity. in the onRecive () I have: intent = new Intent(context, MainActivity.class); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); intent.putExtra("valo...
asked by 13.06.2017 / 19:28
2
answers

how can I make an array with that information

In a census we enter Weights of n people in any order is required to find • How many are thin (0 to 70), fat (71 to 90) and very fat ((> 90).     
asked by 05.07.2018 / 00:25
2
answers

How can I insert data once Androidstudio SQLite?

I have the following DB manager, where I make selects, etc. What I want to do is to enter the data once in the database. I have already tried several times with the getCount as in the example but it does not work well. Does anyone know...
asked by 12.12.2018 / 20:20
1
answer

Delete an event scheduled on android

Good afternoon, I'm programming a spinner that comes with a flag that I have. if the user makes a gesture or a click on the screen, I get a progressDialog . My question is how do I cancel the second click so that I do not do...
asked by 29.04.2016 / 17:25
1
answer

Create a class for a 3D model

I am making a data model, in principle in Java , but that is valid for any language, so that everyone uses the same classes and attributes. It's a kind of DTO. Within this data model I need to represent / use modelos 3D (of a buildi...
asked by 25.02.2016 / 12:12
1
answer

When do I have to use a while or a do while? [closed]

Good I wanted to know when I realize when I have to use while or do while to make a program, because I've seen people who say: "no I would not do this with a for, you can use the while or do while".     
asked by 27.11.2018 / 16:37