Questions tagged as 'java'

0
answers

How do I change the name of a package in eclipse? [closed]

I want to change the name of some packages that I have in eclipse. How do I do it?     
asked by 19.11.2018 / 08:51
0
answers

Doubt about a simple game of stone paper scissors lizard spock!

From a static array where I have {stone, paper, scissors, lizard, spock} I'm interested in the computer taking one randomly. How would you do? import java.util.Scanner; public class Principal { public static void main(String[] args) {...
asked by 19.11.2018 / 12:52
1
answer

How to store different types of data in an array (java)

Good evening I have a problem I have created a table, which I want to add an event that when I click save me data of different types either double , Object e integer . int numCols = table.getModel().getColumnCoun...
asked by 19.11.2018 / 03:57
1
answer

Read XML in ISO-8859-1 and move to UTF-8 (Android Studio)

I am creating an application in Android Studio. This connects to a web and receives an xml that is in ISO-8859-1 . The application uses UTF-8 . It is impossible for me to paint the tildes, ñ, etc. I've used URLDecode.decode, xm...
asked by 09.11.2018 / 19:20
2
answers

Run java program from another

I have this program that I must run from another. public class Exercici8_p1 { public static void main(String[] args) { System.out.println("Introduzca texto -> "); Scanner sc = new Scanner(System.in); String texto = sc.nextLin...
asked by 04.11.2018 / 16:45
1
answer

Error java.lang.NumberFormatException

I have a problem with this program, it works so that when entering a text like "234 + 312" convert the strings into numbers and do the corresponding operation, but I get an error package Pruebas; import java.util.Scanner; public class prueba {...
asked by 04.11.2018 / 06:33
3
answers

Delete data from a table connected to BD with Java

Today I appeal to you in order to ask your help for the following problem. Result that I have a table in JAVA that is connected to a BD (Mysql). I want to delete a record of this table but when I try it it marks the following error " incompatibl...
asked by 04.11.2018 / 11:03
1
answer

How to add strings correctly to a For loop in Java Netbeans?

I have a problem tracing the for loop in my program. In fact I do not know if based on the statement is doing the program correctly (if someone has another logic could help me). In the end the error is that I want to ask for the parameters clien...
asked by 03.11.2018 / 23:53
0
answers

Maven central vs local Maven

I am creating a Java project in
asked by 01.11.2018 / 21:01
0
answers

I inserted the time 3 hours ahead

I have a java.util.Date, which has a particular time (not the current one), and when I insert that Date in my database, it shows me the time 3 hours in advance, in the database I have a field DATETIME type that keeps the time, this is my code:...
asked by 28.10.2018 / 00:08