Questions tagged as 'java'

3
answers

Where for the files? [closed]

When we use Spring and Maven, where should we put the files? in the webapp folder or in the WebContent folder?     
asked by 21.02.2018 / 23:12
1
answer

How to print only one sale with your products using jasperReport?

I'm trying to print only the sales you want with jasperSoft reports, only you're printing all the sales and all the products you then added into other sales. jasperSoft report image impress.javaStringrelatorioStream=servlet.getRealPath(thi...
asked by 21.02.2018 / 04:14
1
answer

Problem with ToString in Android Studio

I have variables of type String and variables of type Int. When I do getText.ToString() in a variable of type int Android Studio presents error because the type of variable is not a String. Would anyone know which option I can use for...
asked by 24.06.2018 / 17:01
1
answer

how to initialize the sales id in print class?

I would like to get the id of venda in the print class of the page, and it is null, and I am using it to compare with idvenda with the parameter created in jasper. impress.html <p:commandLink title="Imprimir" action...
asked by 21.02.2018 / 02:18
1
answer

Online image in Adapter

I have an adapter in my App, and I would like to take photos of my server to put on it instead of a saved photo in the root, I already tried several forms, already tried using the Picasso API but the most I could get was 1 photo for free. Ada...
asked by 24.06.2018 / 22:57
1
answer

Iterate over components Swing recursively is strange [closed]

To add Listeners to all the components of my Frame I'm iterating over it recursively: private void adicionarListeners(Component componente) { Stack<Component> stack = new Stack<Component>(); // evita adicionar...
asked by 16.03.2018 / 19:56
1
answer

Java systems modeling needs?

I used structured data diagrams more than 15 years ago. In 2002 I did not use OOP. I want to relearn system modeling using OOP. Do they indicate any material? Do I need to learn Java or just POO in UML without Java programming language?     
asked by 16.02.2018 / 02:54
1
answer

Submit a POST request with java

I need to send a POST request to the following address which is an Amazon API:    link And in this request a JSON has to be sent: { "token": "633cc5hs58512b012104c7408d60d19930d5514", "email": "[email protected]", "answe...
asked by 16.03.2018 / 15:28
1
answer

How to read files with accents on Android?

Hello, I'm having trouble reading files with accents on Android. I'm using the following method to read: public String lerAquivo(File arquivo) { String texto; String linha; BufferedReader br; try { texto = "";...
asked by 10.02.2018 / 21:14
1
answer

Doubts about building and relationships between classes and mapping in JPA

InthefollowingclassdiagramIamtryingtomakethefollowingrelationshipsbetweenclasswhereademandwillhavearesponsibleanalystandarequestingclient.Iwouldliketoknowifmymappingissureifthelistgetsintheclassdemandsinsteadthefollowingmodelsfollow:packagebr.c...
asked by 10.02.2018 / 07:35