Questions tagged as 'java'

0
answers

How to inherit attributes from 2 different classes in JAVA? [duplicate]

I'm trying to inherit the attributes of the Physical and Legal classes, but I know that in Java there is no multi-inheritance. How can I use the Physical and Legal class attributes in the Client class?     
asked by 25.11.2018 / 02:17
0
answers

Ireport does not open on ubuntu

I installed the client version iReport-5.5.1, then I configured jdk7 and set the jdkhome variable parameter (ireport.conf) pointing to the path jdkhome="/ usr / lib / jvm / jdk1 .7.0_80 /". When I run iReport-5.6.0 / bin $ ./ireport does not...
asked by 25.11.2018 / 21:47
0
answers

Java SE and iReport - Path to an image as a parameter on different PC

I have tried in many ways and searched for numerous examples, but I can not use an image in a report using iReport on a different pc than the system is doing. My structure: In the iReport Report: I have a parameter set to InputStream...
asked by 25.11.2018 / 22:00
1
answer

Using Switch Case for Intervals

My teacher passed an exercise in which we should use the cases of a switch to handle intervals, he said strictly that we should use the switch and we can not use if nor while/do . I've tried the following code: switch(saldo)...
asked by 24.11.2017 / 18:17
1
answer

Copy TAG specific XML file and merge with another XML file

Situation: - I need a single XML file that contains the data of all the other existing files and the ones that are to come. But I can not just join one file with the other and I just need a specific tag. Is there any way to do this in C # or...
asked by 25.11.2018 / 01:40
2
answers

error reading JSON

I have a code to read Json, in my test environment it works 100%, but when I change to read another Json with other settings it accuses Unexpected token COLON(:) at position 45. at org.json.simple.parser.JSONParser.parse(Unknown Source) at org...
asked by 30.11.2018 / 17:20
1
answer

Do not re-enter a user with an existing login

I have a problem with JPA with Java. I made a login system, using a self-generated ID, but every time I run the program it creates another user in the database, with a different id but same credentials. How do I, if this user login already...
asked by 23.11.2018 / 03:00
1
answer

2 form on the same page with Spring mvc, Thymeleaf, does anyone know how?

This registration form for Physician, so I created this modal for the user to register specialties. @GetMapping("/cadastro") public ModelAndView preSalvar(@ModelAttribute("medico") Medico medico,@ModelAttribute Especialidade especialidade){...
asked by 03.12.2018 / 01:37
0
answers

ireport - Error when using Print When Expression

I'm having a problem while generating the report, the print when expression function does not work, the report always shows this line with the value null I'm doing this on the line <printWhenExpression><![CDATA[new Bo...
asked by 28.11.2018 / 18:23
0
answers

Edit a Spinner recorded in the Bank!

I'm trying to edit some information of a product registered in the database, but the problem is this: all information in "String" I can handle good, I only have an information that was retrieved through a "Spinner ", I'm actually not able to set...
asked by 23.11.2018 / 19:36