Questions tagged as 'java'

1
answer

Error Can not convert object of type

This started to appear out of nowhere, apparently I did not change anything in the code and simply by making changes to other parts it appeared. Error: 12-07 07:47:43.652 8947-8947/br.com.tecmafandroid.projeto.tecmaf E/AndroidRuntime: FATAL...
asked by 07.12.2018 / 11:06
1
answer

Draw of positions of an array

I need to create a function to sort within an array full of 0 with size n x n, four positions to modify the value of only those positions drawn.     
asked by 05.04.2018 / 18:45
1
answer

Spoon.bat does not work with windows 7 and java 1.8

After unpacking the Pentaho PDI. I try to run the spoon.bat and get this message below and it does not open the IDE I'musingjava1.8andwindows764bitsErrormessage:  DEBUG:UsingJAVA_HOMEDEBUG:_PENTAHO_JAVA_HOME=C:\Program  Files\Java\jdk1.8.0_1...
asked by 26.04.2018 / 21:55
1
answer

Java csv to my bean - OpenCSV

<!-- https://mvnrepository.com/artifact/com.opencsv/opencsv --> <dependency> <groupId>com.opencsv</groupId> <artifactId>opencsv</artifactId> <version>4.0</version>...
asked by 29.03.2018 / 18:58
1
answer

Call method with parameter of another method in Java? [closed]

I would like to call a method with a parameter being an object of another class, but is this object created in an earlier method? Example: Class A: Public void cadastrar (Cliente cliente){ System.out.println (cliente.getNome()); }...
asked by 19.04.2018 / 02:40
1
answer

How to insert a value into a copy of the table?

I'm doing a transfer from the table " Histo_Ficha_Controle " to " Cad_Espec_Teste ". The two tables contain the same fields to receive the information. When you copy from one table to another, I'd like to know if it's possible to ins...
asked by 12.04.2018 / 20:02
1
answer

Java ArrayList does not work

I'm having problems with ArrayList import java.util.Scanner; public class ArrayList{ public static void main(String[] args) { ArrayList<ArrayList> agenda = new ArrayList<ArreyList>(); Scanner input = new Scanner(System.in...
asked by 23.05.2018 / 13:04
1
answer

Error while building and executing project, java web, with jpa and hibernate

I'm developing a Java Web project, using JPA, Hibernate and maven, and when executing the project, or when constructing the project I get the following exception: cd E:\NetBeansProjects\mercadinho; "JAVA_HOME=C:\Program Files\Java\jdk1.8.0_161...
asked by 04.06.2018 / 16:19
1
answer

Number Repeat

Well, I have the following situation: I have a screen account type like this: x + 1 = 2 , the user has to click on the option that completes the account and I tried to use this code from my previous question , but it did not work. In this...
asked by 09.12.2017 / 20:49
1
answer

How to open txt in java for user

I create a txt and I can also read but how do I open it to the user as if I have clicked on it? can be by the same notepad or have it select the program ...     
asked by 22.12.2017 / 17:44