Questions tagged as 'java'

1
answer

Stop threads in Java

In summary mode, the result I get now is: Miembro_X esta mirando el canal ... Miembro_X esta mirando el canal ... Miembro_X esta mirando el canal ... Ja nadie mira la tv. Code: CASA CLASS: public class Casa { public static void ma...
asked by 28.02.2018 / 20:56
2
answers

Explanation of the Cast for what it is, and when to use it?

Hello, I have this part of the code in one method public lugar getlugar(int x){ lugar l2=(lugar)lugares.get(x); return l2; } I want you to do me the favor of explaining me about the cast because I can not understand it. This is...
asked by 28.02.2018 / 17:03
2
answers

Json a Object, using api rest

I'm doing a java program using api rest to connect and get data from the database. For now I have the following classes: And the json corresponding to the information of the users are: { "id": "1", "name": "ejemplo", "email":...
asked by 02.03.2018 / 12:28
1
answer

Simple circular lists, count and show

is my first question within this community and in advance I appreciate all the help you can give me. At this moment I have the need in Java to count the elements of a simple circular list that match a parameter and show that amount on the scr...
asked by 01.03.2018 / 15:49
1
answer

org.hibernate.LazyInitializationException: could not initialize proxy - not Session Solved

if I have a class "City" and a "Person" each with its attributes but Hibernate in the class "Person" instead of int IdCity works with < strong> City getCity in the get and set and while adding an attribute of type Set Person > Person...
asked by 14.02.2018 / 23:17
1
answer

touch several buttons with a finger

I am wanting to make a piano in parts, how could I do the effect of when I play a key and dezlizing to the left or right (without lifting my finger) the other notes sound? Almost use the same keypad code. Reading out there would I have to...
asked by 14.02.2018 / 19:28
1
answer

Error saving data in access: "can not write indexes of this type due to unsupported collating sort order"

Hello I am learning on my own to access a database, insert, delete, update, etc, in this case I use Access as a database but I have a problem when inserting data in the table, it generates the following error: How can I solve it?...
asked by 14.02.2018 / 22:40
1
answer

Parse JSON objects with random names

I'm trying to pair objects JSON with GSON I'm used to knowing the names of the objects, I create the classes and I just have to call those classes to use the objects and build custom adapters and finally fill lists or other views easily with...
asked by 31.01.2018 / 21:38
2
answers

Deleting an Object as a key in a Java Map [closed]

How to delete an object that is saved as a key in a Map list, passing it by parameters and searching it within the Map and checking if it exists and then deleting it.     
asked by 30.01.2018 / 18:32
2
answers

Pass a json object from one activity to another

I have the following problem I am trying to bring a list of items that I get from a json , from a activity through a controlador q you request it to a class that has the json . Inside the code that I am attaching what I...
asked by 31.01.2018 / 00:39