Posts by Marcos Lozina • 95 points
10 posts
-
-4
votes2
answers614
viewsA: What is code golf?
Follow the answer: "Code golf is a type of recreational computer programming competition in which participants strive to achieve the shortest possible source code that implements a given algorithm.…
-
0
votes1
answer129
viewsQ: Doubt JPA 2.1 and Hibernate 5.2
I have some questions with JPA 2.1 and Hibernate 5.2. The last version of the JPA booth is 2.1. Right? Is it correct to say that I can implement a JPA-only AP without Ibernate? What are the features…
-
3
votes1
answer2956
viewsA: Setting up Github in Eclipse
The configuration and use of git along with github and eclipse independent. To download the git client you can access the: https://git-scm.com/download/win If you want to download a project from a…
-
1
votes1
answer207
viewsA: Manipulating dates
Using the Java 8 API makes it easier to handle dates import java.time.LocalDate; LocalDate dataInicio; @JsonFormat(pattern = "yyyy-MM-dd") LocalDate data; In your object only retrieve the Localdate…
-
0
votes1
answer345
viewsA: Compare End Date of the first record with Start Date of the second
You can check the record by passing the start date of the customer service and the end date of the previous customer service. All returns (value) >= (00:00:00) are records that do not cancel the…
-
0
votes2
answers467
viewsA: Calculation of word similarity with Java
I managed to solve it, so making the code cleaner: public static void semelhancaString(Integer n, String... strings) { List<String> listStrings; String stringBase, stringComparator; Integer…
-
0
votes2
answers467
viewsQ: Calculation of word similarity with Java
For two string A and B, we define the similarity of these strings is the length of the prefix that is common to both. For example, the similarity of strings abc and abd is 2, while the similarity of…
-
1
votes1
answer1008
viewsA: Problems with JSF Fileupload
Follow an example working using Fileupload with JSF 2.2 Some Vesses is easier to get a working code and replicate, than to find an error. In view <ui:composition…
-
0
votes1
answer474
viewsQ: Implementation using API-Streams and API-Lambda Java 8
Good Staff. Trying unsuccessfully to solve a proposed exercise using the new features of the java 8 Lambda and Streams Apis. In this exercise you can only create and change methods signature in the…
-
1
votes1
answer505
viewsQ: Architecture API Restful
I’m building a Restful API with spring MVC and I have 2 non-functional requirements that I don’t understand how to attack them. The API must support 100 requests per second; The API should provide…