Questions tagged as 'java'

3
answers

Touring java arrangement efficiently

Lately I wanted to start thinking more than solutions, to be effective at the time of programming. And that is why I run into the following question, and as the title says: What is the most efficient way to traverse an array in Java? And...
asked by 13.04.2017 / 14:36
3
answers

Get all "Monday" in a range of dates

I need to get a list of dates whose days are "Monday" in a range of dates supplied, both inclusive. For example: If we pass the interval 01/05/2017 until 15/05/2017 the function should return:    01/05/2017       05/08/2017       05...
asked by 06.07.2017 / 14:45
1
answer

Advantages and disadvantages of Lambda expressions in java 8, What are their utilities? [closed]

Java 1.8 has brought with it important changes in our way of programming and specifically one of them are the so-called lambda expressions. These expressions greatly shorten the code of our application but what implications does this really have...
asked by 02.01.2018 / 14:19
2
answers

Java - Primitive types and types by reference

I am learning Java and I have a question about the types of data. A variable of primitive type stores a single value. When I assign a new one, the previous value is lost. Now with the variables by reference I pose an example, I have a clas...
asked by 08.07.2016 / 17:21
2
answers

Doubt about Builders and use of getters and Setters

I am practicing with a program to read data from a Pseudo Speed and Pressure sensor using getters and setter. As the sensor does not exist, the values that the user enters via the reader from the main method have been assigned. The exercise e...
asked by 14.07.2017 / 08:12
1
answer

How to debug Unit Tests using Intellij IDEA?

I created a file with a single test but I can not debug it, it marks me error in other classes to which I do not even reference. When I created the unit tests I was asked to set up a JDK for which I chose:    Information: Using java...
asked by 24.01.2017 / 15:46
1
answer

How to replace ProgressDialog (obsolete) with ProgressBar in retrofit?

Since ProgressDialog is "deprecated" I am trying to replace it with a ProgressBar, I have an activity with a list and I am trying to show a ProgressBar before the list is displayed after an http query with retrofit. I have used "progre...
asked by 04.05.2018 / 10:18
1
answer

Referencing a Java Control with a String

I have a array string with the names of controls Label and I want to reference them by that name. Or what is the same, I want to pass a String to a control Label . For example, in VBA it would be like this: for i=0 t...
asked by 01.04.2017 / 19:21
3
answers

Set default schema = ALGO in oracle using Spring Boot and Spring JDBC

I am now working with Oracle and Spring JDBC, but I do not want to use the schema in my sql statements: Example: Select * from SCHEMA.table Is there any way to set the default schema in application.properties or application.yml?...
asked by 22.06.2016 / 19:10
1
answer

Create enum in Java from the .properties file

Is it possible to load values for an enum from the .properties file? into an enum. I have the following information in the file called secure.properties: authorization-api-context=http://localhost:8099/ mongo-db-name=secure defaul-countries...
asked by 03.07.2016 / 02:44