Questions tagged as 'java'

1
answer

Error in syntax with inner join in java

Good people, I am trying to fill a combobox with a query with inner join in java that is causing me conflicts and I can not understand it, I get the following error: My query is constructed in the following way: public void c...
asked by 01.08.2017 / 02:10
2
answers

Cousins, odd and even in Java

I want a program that shows ask the user for numbers until you enter a "0" or a negative number, when this happens, the program should show: 1.-How many numbers are entered 2. How many are cousins 3. How many are pairs 4.- How many are odd. I...
asked by 03.08.2017 / 01:27
2
answers

Can there be two onActivityResult in the same Android class?

I have to upload two images (they do not have to be uploaded at the same time) to two ImageView , each one selected separately from the gallery. I managed to get one of them, but I duplicated the data in the two ImageView because of...
asked by 28.07.2017 / 14:56
3
answers

Error in method when moving files from one directory to another

In a method where I move files, when I pass the parameters and perform the operation, I always get an error. If something is failing me, could you help me? public void MoverArchivo(String oldPath, String oldName, String newPath) { File f =...
asked by 15.02.2016 / 16:37
1
answer

Problem running .jar in terminal

I'm doing a project in eclipse. At the moment of exporting the program by means of the option RunnableJarfile , it makes all the export, I keep it in my desk and at the moment of wanting to test it in my computer by means of the terminal t...
asked by 17.02.2017 / 16:53
1
answer

My program does not ask for the second Java value

I need help with my code in java, I'm doing a menu with functional options but with a graphical interface, when I click on the options, for example, adding, I'm asking for the first value but the second one does not ask for it and the program ar...
asked by 05.06.2016 / 05:15
1
answer

Android Auto: Error launching the DHU on Mac

I created a test project in Mac OSX 10.11.1 for
asked by 04.12.2015 / 09:37
3
answers

Counting Java vowels

I'm doing a program with which you have to enter a sentence ending in point and you have to say for example the vowel "a" comes out in position 7 and so with all the vowels. The first part that is a finished sentence in point I have done well. B...
asked by 04.01.2019 / 15:19
2
answers

How to call a method that belongs to another class? JAVA POO

Hi, I'm doing a program on the weight of people and I have to do several methods one of them is: averageWe're in the class Statistics of People but my problem is that I do not know how to call a variable or the method getPeso () which is of the...
asked by 07.12.2018 / 04:50
2
answers

ClassCastException from RSAPublicKey to CaviumRSAPublicKey

I have an exception when performing a Cast, my code is as follows: public static RSAPublicKey getKey(String filename) throws Exception { byte[] keyBytes = Files.readAllBytes(Paths.get(filename)); X509Encod...
asked by 19.10.2018 / 01:14