Questions tagged as 'java'

1
answer

Java Spring - Repository returns Null

This is my ApiKey class: @Entity @Table(name="API_KEYS", schema="DEMO_PIMS") @JsonIgnoreProperties(allowGetters=true) public class ApiKey implements Serializable{ private static final long serialVersionUID = 1L; @Id @Column(n...
asked by 27.06.2018 / 16:16
1
answer

How to create a widget?

I have in mind the provider on @xml/widget_info o receiver on Manifest the layout of the widget and the class Provider is that I have doubt. What does it need to have?     
asked by 20.02.2014 / 01:13
2
answers

Reading text file stored in the raw folder through a user class

I have a test code that works fine. The function of the test is to read a text file that is in a res \ raw folder. It reads the text file smoothly and prints its contents line by line through Toast. The functional code is as follows: packag...
asked by 13.02.2014 / 14:17
1
answer

Schedule Timer Tasks

Situation: Description: I have this Timer to perform my tasks in a given time period according to the% informed%. Problem: When running the program the tasks start ignoring the seconds informed, after the task is executed for...
asked by 21.02.2014 / 17:22
1
answer

Access data from a class

I'm developing a graph generator to monitor the navigation of a robot. The data of the coordinates by which the robot passes are stored in a txt file, with each line having a latitude and a longitude, as described in that question . I'm using t...
asked by 07.06.2018 / 21:57
2
answers

Pass parameters to jar file

I have an example project ready (very simple), but I would like to make a database connection configurator. After compiling, the system creates a .jar file and I would like to know how to pass a parameter on the executable to call the database c...
asked by 12.05.2018 / 20:53
2
answers

Make a query with criteria hibernate with Spring

Good evening, friends, I have a question. I have a Class called Proposal and another Call Client. In the client there is the CPF field and a Proposal has a Client. I need to search for proposta.cliente.cpf , but I can not, could y...
asked by 11.05.2018 / 04:18
1
answer

How to delete a node in a linked list in Java?

I have the following code in java but it is not working properly. I need to delete a node from a linked list. Someone help me? /* Delete Node at a given position in a linked list head pointer input could be NULL as well for...
asked by 10.05.2018 / 19:54
1
answer

map.forEach Unexpected return value

I have the following map: private static Map<ParseCreator, Parseable> map = new HashMap<>(); I run this map as follows: for (Map.Entry<ParseCreator, Parseable> entry : map.entrySet()) { ParseCreator creator = ent...
asked by 09.05.2018 / 13:52
1
answer

Check if date is between two dates in the 30 min interval

I have a service that before saving some value in the bank, it needs to be checked if it is within some time already saved in the bank. Each period consists of half an hour. ex: 10:00 10:30 11:00 If the user tries to put 10:31, an exception...
asked by 09.05.2018 / 21:27