Questions tagged as 'java'

2
answers

Word problem with same letters

I'm solving a problem where I get a array of strings with different words, I have to find out for each word ( string ) which are your friends. Friendly words are those that have the same letters in different or equal order. The proble...
asked by 02.08.2016 / 17:44
1
answer

Validate increasing and decreasing numbers with regex

I need to create a regex for validating increasing and decreasing numbers as the example:    Repeated | growing | Decreasing   000000 | 012345 | 987654   111111 | 123456 | 543210   [09:30:16] William Oliveira: Repeat validation is in r...
asked by 26.07.2016 / 19:02
1
answer

How to make communication between java in prolog?

Good morning! I need to develop a specialist system like college work. I thought about doing it using java to create the interface and prolog as an inference engine and fact base. But the links I found about a JPL library are broken and I do...
asked by 16.07.2016 / 15:43
1
answer

MySQL does not connect through getConnection () Netbeans Java

I'm already trying to make my MySQL database connect at getConnection() . I have tried several different ways, to put the name of the bank, I have seen several tutorials including the tutorials that are from the MySQL website itself, video...
asked by 20.07.2016 / 04:23
1
answer

Slow JFrame Opening with Hibernate

Good morning everyone. I have a Swing application that has a JFrame using Hibernate 3 for persistence in MySQL BD on the network. When I go through NetBeans, it opens up pretty fast. But when I run jar built on another computer, this JFram...
asked by 26.07.2016 / 14:33
2
answers

Send data from one method to another in the same activity

I know that to send data from one activity to another is as follows: String value = filename; Intent intent = new Intent(getApplicationContext(), ReceberNome.class); intent.putExtra("nameFile", value); startActivity(intent); And to receive:...
asked by 25.07.2016 / 02:27
1
answer

How to indicate in a regex that the '(' and ')' symbols, the parentheses, are one of the alternatives in a list of symbols in Java?

I'm developing code that captures text using regular expressions (regex). This text is made up of parentheses. The point is that parentheses are used in regular expressions as group definers and I want to use them as literals. I have alrea...
asked by 21.12.2016 / 03:06
2
answers

Problem converting String to Date

I have a project to do and I can not convert String to Date . I want to compare the current date with the date of the query that is in the textField Date , and if the current date is past the marked date, it means that the query ha...
asked by 29.11.2016 / 18:14
1
answer

How does JUnit work?

How does the open-source JUnit framework work? Does it guarantee the quality of the software? Is it advisable to write unit tests on a daily basis?     
asked by 28.03.2017 / 13:00
1
answer

Make Wildfly Server perform task

I need to create a task executor where it will call a method from time to time, I saw an example and it became my implementation: public class Agendador { private final ScheduledExecutorService scheduler = Executors.newScheduledThreadPool...
asked by 30.03.2017 / 00:26