Questions tagged as 'java'

1
answer

ERROR ClassNotFoundException: jdbc: mysql: // localhost: 3306 / athletes

I need urgent help, I get this error:    May 22, 2018 7:56:34 AM Windows.inscriptions   btn_guardarActionPerformed GRAVE: null   java.lang.ClassNotFoundException: jdbc: mysql: // localhost: 3306 / athletes It is a program where you regist...
asked by 22.05.2018 / 12:54
1
answer

Xpath select that the field has more than one attribute

Hello Very good I have a problem when looking for another attribute in a node WebElement SelecionFechaCalendario = findElementByXPath ("// tbody / tr / td [@ data-month=" + fechaselecionarmes + "] / a [@date=" + fechanueva + "]", DEFAULT_W...
asked by 18.05.2018 / 08:13
1
answer

Error "variable numAlum might not have been initialized"

I was asked to do this task but when trying to protect with a try catch a variable that deals with an object marks me an error and I would like to see if there is a way to apply the try catch since it is a requirement of the task that try try ca...
asked by 27.05.2018 / 22:46
1
answer

java.lang.ClassCastException: Can not cast javax.swing.JPanel to java.lang.Boolean

I get that error when executing JFrame in which Jpanel is located. Any idea I get why this occurs would be very helpful.    Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: Can not cast javax.swing.JPanel to java.lang.Bool...
asked by 31.08.2018 / 14:44
2
answers

Generate an array of random numbers that do not repeat in java

public static void main(String[] args) { int numeros[]=new int [4]; int minimo = 1; int maximo = 5; //Genera, comprueba e introduce los numeros en el array si la comprobación es correcta for (int i = 0; i < numeros.length; i++...
asked by 02.09.2018 / 11:43
2
answers

I have a problem extracting text from a label and displaying it by console

I am trying to automate an app which I need to read a label and its text, and that this is shown by console the app is as follows. DesiredCapabilities dc = new DesiredCapabilities(); //@BeforeMethod protected void setUp(String deviceNa...
asked by 31.08.2018 / 23:56
1
answer

search method

//crear una estructura de datos que lea los libros de una biblioteca //y logremos obtener el nombre del autor del libro y la naturalidad package libro; import java.util.Scanner; public class Libro { public static void main(String[] args)...
asked by 24.08.2018 / 13:28
3
answers

java program correction

I'm new to programming with Java , and I do not know what similarities I have with C , if someone can correct me the program I would appreciate it. The objective of the program is to calculate a supermarket bill. When I give run on...
asked by 02.09.2018 / 00:25
1
answer

Sort the output order of an array

Hi, I'm stuck in some parts of my program and now I have the next part of my program: public class Relleus { public static void main(String[] args) throws InterruptedException { Testimoni c = new Testimoni(); int numMembres = 5; //la...
asked by 13.03.2018 / 16:55
1
answer

Check if two objects of the class java.util.calendar point to the same day without taking into account the time

I'm trying to compare two dates stored in calendar objects. At the time of seeing if they are equal or minor, or not, I have no problem, the difficulty arises when some of those calendar objects have a date and time stored, and others do not. Wh...
asked by 28.02.2018 / 21:06