Questions tagged as 'java'

1
answer

ArrayList bugado [closed]

Using the command .clear of java.util.ArrayList; the command resets the array of my graph object also but I just wanted it to delete arraylist sucs, follow the code: import java.io.File; import java.io.FileNotFoundException; impo...
asked by 03.10.2015 / 00:44
1
answer

Java - Main Class Execution Error [duplicate]

Good afternoon, After using Eclipse Luna and returning to Eclipse Mars, the business simply popped up and I deleted the Eclipse files to see if it worked out and re-imported the java project.    (JFrame Access): "Error: Could not find or...
asked by 10.12.2015 / 20:08
0
answers

Generate PrivateKey with library java.security

I want to generate a private key in the java standard for the PrivateKey format using RSA, but always in the invalid format. I have already tried several keys with openssl, generating by java and I can not find a solution. Follow the code to cre...
asked by 26.12.2018 / 01:09
0
answers

How to store an arraylist in another class?

I have a genetic algorithm job where an agent has to walk in an environment and every time he leaves, he gains negative score. The paths that this agent traverses are generated randomly, so I made an arraylist that stores these several arrays, s...
asked by 24.12.2018 / 14:39
1
answer

JavaFX Screen Error

When I click to open the clients screen, this error appears. Could someone help me? Error: Exception in thread "JavaFX Application Thread" java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at javafx.fxml.FXMLL...
asked by 19.12.2018 / 04:05
1
answer

How to check the number of words in a String? [duplicate]

Well, I'm doing a job for college where I need to identify the number of words a string has in Kotlin. Type: texto = "Ola Mundo" The variable numeropalavra s must be equal to 2. Is there a function that checks the number of w...
asked by 23.11.2018 / 16:02
1
answer

Java Android How to assemble a random database?

In the Android application, using Java, I get a string in Json that looks like this: String teste = "{\n" + " \"nometabela\":{\n" + " \"id\":\"f83d6101cc\",\n" + " \"coluna1\":\"codigo\",\n" + " \"coluna2\":\"descricao\",\"coluna...
asked by 23.11.2018 / 12:03
1
answer

Error installing eclipse: Exit Code: 13

Hello I'm trying to install eclipse on ubuntu XFCE 18.04, with openjdk8 installed and with the path set to "/ etc / profile": Buthecontinuestogiveexitcode13: I do not remember very well if in the past I changed the PATH somewhere else,...
asked by 27.11.2018 / 14:57
1
answer

Delete an auth firebase log

I need to delete a Firebase Auth record, I'm using the following code: FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser(); user.delete().addOnCompleteListener(new OnCompleteListener<Void>() { @Override...
asked by 13.12.2018 / 17:15
1
answer

Function that inverts vector values into another vector

I have the following code: import java.util.Scanner; public class ativ15 { public static void main (String[] args) { Scanner sc = new Scanner (System.in); int i; i...
asked by 09.11.2016 / 02:47