Questions tagged as 'java'

2
answers

Do not bring data in Json Array on Android

I have a problem in bringing data into an Array in Json . It looks like it does not execute the Try catch, but in the variable result it brings all the data. I would like to get the name field, but it does not run the Array. See my code...
asked by 18.06.2015 / 21:59
1
answer

JVM. What is the difference between Metaspace and Permgen?

What is the difference between Metaspace and Permgen? I've been trying to understand for a while, could you help?     
asked by 22.06.2015 / 15:48
3
answers

In OOP, what are the differences between Afferent Coupling and Efferent Coupling?

Regarding the concept of acoplamento in Programação Orientada a Objetos , what are the differences between Acoplamento Aferente and Acoplamento Eferente ? If possible, to elucidate the understanding better, what would a...
asked by 06.11.2015 / 18:31
2
answers

What kind of tests can I still do in this code?

I'm doing a test run in a simple bank application, but I do not know what kind of test I can do in that system to cover 100% of the code, it's only covering 61%. I already did all the tests with lower values, equal and higher, I did with anonymo...
asked by 25.11.2014 / 13:19
1
answer

How can I create a 20-number Banners look on the Jframe

It is a game where your bet will be competing for Sena, Quina and Quadra, so each bet can only have 6 numbers, I need the user to select 6 numbers out of these 20 and then I pick up the 6 selected ones and place his bet . But I just need this B...
asked by 03.12.2014 / 16:11
2
answers

Graphs: greater path

Well, as a college work, I have to create an algorithm that, given a certain file with x numbers, is able to verify which is the largest sequence of numbers that, based on 6, respect the following rules: The string must be growing From o...
asked by 04.06.2015 / 06:19
1
answer

How to override variable defined in the POM with specific value at the time of mvn execution?

In an environment with multiple Web Container settings we sometimes need to correctly point to the application deploy directory that may be in different directories depending on the Operating System used and the package manager (apt-get on Ubunt...
asked by 09.03.2014 / 19:04
1
answer

Difference in performance for simple and for iterator

I have a list of clients and on a certain screen the user can search and edit the clients of the list that is very extensive, comparing these two examples what would be the best to work? Example 1: for (int i = 0, tamI = listAll.size(); i&l...
asked by 23.08.2017 / 15:45
1
answer

How to know if the list contains both elements that meet and that do not meet a condition, using stream?

I have a list of columns, I need to know if this list contains both columns that are keys as columns that are not keys.    I guarantee the existence of at least one column in the list My column class: public class Coluna { public bool...
asked by 14.06.2018 / 15:41
2
answers

Why Netbeans suggests improving the for?

When you were doing this for Netbeans showed that bulb tips to improve the code in the for line. The suggestion was to reverse the condition. Here is the code: Before improvement: for(int j = 0; j < selectionPaths.length;...
asked by 31.10.2014 / 11:07