Questions tagged as 'java'

0
answers

CompareTo method of the Comparable interface allows encapsulation breaking?

The Student class has its private attributes and to access or modify them requires the use of the get and set methods. In addition, the Student class implements the Comparable interface. class Estudante implements Comparable<Estudante> {...
asked by 11.06.2017 / 21:00
0
answers

How to start an array in another class - java

I'm trying to implement the depth first algorithm to solve a labyrinth, like the one below, where the starting position is S and the output is E _SW______\n _WWW_W_WW\n _____W__E\n In the MazeReader class I read the .txt file for the Maze a...
asked by 12.06.2017 / 17:18
0
answers

Keep updated Swagger documentation

I am documenting an API with Swagger. I am not using annotations and the documentation is written to a JSON file. The problem is that API is constantly changing and every change you need to compare the file with the Java source code. I wou...
asked by 22.06.2017 / 17:25
0
answers

Error converting java project with jersey to maven

I created a project with angular and WS REST using Jersey. It was running normal until I was converting the pro project to Maven. When I try to upload the project, I'm having the following errors:    Missing dependency for constructor public...
asked by 16.06.2017 / 20:35
0
answers

pass several parameters pro ireport

In my Java program I selected a list of values and wanted to pass this list to iReport as a parameter. This parameter would be used in the SQL query: SELECT ... FROM ... WHERE ... IN ($ P {list}) When I pass a code it only works like where =...
asked by 16.06.2017 / 21:18
1
answer

Adapt the user input to the size of an array

I've created a program that generates mazes that can be solved, but now I'm not able to implement a way for the maze size to be defined by the user. The code below is the ActionListener of a button that when clicked asks the user the s...
asked by 16.06.2017 / 18:25
0
answers

Is it possible to include OCR in java android? Is there an OCR library in JAVA? [closed]

I have already researched something about OCR on the internet and found the GOOGLE solution, but it is very expensive.     
asked by 16.06.2017 / 15:37
1
answer

Calculate the total Sales Revenue

I have a query page that shows the total revenue for each product and I want to calculate the total sum of the revenue but the account is going wrong. The correct doing the sum in hand gave 264,660.00 and doing in java gave 18,830.00 link...
asked by 18.07.2017 / 21:06
1
answer

Declaring namespaces in XML in classes imported by WSDL (jax-ws)

I'm developing a WebService application using jax-ws. In this model, after importing the WSDL, the IDE generates the classes that will be used in the information exchange. However when I create the object and pass as a parameter I get the messag...
asked by 18.07.2017 / 21:29
0
answers

Eclipse runtime problem

I was trying to fix a problem in my Java in Run. When I tried to run Run again (it had not changed anything yet, I had just opened the Run settings) gave the following problem:     
asked by 18.07.2017 / 20:13