Questions tagged as 'java'

1
answer

How to make a program calculate the area of several objects separately using the values given by the user (scanner)

I'm new here and new to programming, I believe that the best way to establish concepts and learn is in practice. So I tried to do some basic programming in Eclipse (I also use Intellij ) and at first it worked, I wanted to use...
asked by 30.11.2018 / 20:13
1
answer

Regex special characters required

I need to create a regex to validate password. It must contain at least 8 characters, which must have at least 1 letter, 1 number and 1 special character.     
asked by 01.12.2018 / 01:20
1
answer

Build Query with JOINS

I have a query run on DB2: SELECT f.* FROM Fat f INNER EFat ef ON f.id = ef.id AND f.seq = ef.seq How do I reverse it in Java? I tried this way, but it gives error, all my classes are with their due...
asked by 26.10.2018 / 17:30
1
answer

Problems with paging in JTable

I am creating an application where I fill in the data from a table through the database, but there are many then wanted to organize better. However, the results displayed in the table are not constants. The implemented methods behave differen...
asked by 28.10.2018 / 21:59
2
answers

Hibernate, JPA, does not save the new data in the database

I have a Java Spring MVC application, with Hibernate and JPA and HTML interface. I have two forms that depend on the CadernoCadastrados class and their attributes. In the first form I enter the data of a new Notebook, saved in the database...
asked by 29.10.2018 / 15:02
2
answers

Difference between RequestMapping and PostMapping

I was looking at requests from Spring Boot and I saw that you can make a request POST , in two ways: //primeira forma @RequestMapping(value = "/dev", method = RequestMethod.POST) public ResponseEntity<String> dev(@Reques...
asked by 09.11.2018 / 19:42
1
answer

Trigger alert using Selenium in Java

In addition to manipulating javascript alerts with Selenium WebDriver , would it be possible to invoke Selenium code runtime alerts in the browser? I would like to create the 3 javascript alert types below using selenium : alerta...
asked by 09.11.2018 / 20:59
1
answer

How to import and configure a Maven project with Tomcat server in Intellij?

I have a simple project and would like to run this project in the Intellij IDE, but I believe that unlike Eclipse, the IDE requires other parallel settings to import. I would like to know how this import process works. Note: I'm using the...
asked by 09.11.2018 / 14:13
1
answer

Doubt JavaMail - Attachments coming null

I have an application that downloads the attachments that are sent in a certain email and works perfectly. There was a need to do the same thing in another email. Both are gmail. However, when I read the inbox of the second email, all atta...
asked by 23.10.2018 / 02:47
1
answer

Button to return to an attempt

My problem is: Return from an Activity to an intent. I have the following sequence of pages: -MainActivity -Intent(Escolher foto) -DadosActivity In MainActivity I have a button to open an intent for the user to select a photo, with the f...
asked by 23.10.2018 / 12:51