Questions tagged as 'java'

1
answer

Error: Could not instantiate class org.openqa.selenium.chrome.ChromeDriver

This error appears when I run the test. I do not know how to solve it thanks for your help    Could not instantiate new WebDriver instance of type class   org.openqa.selenium.chrome.ChromeDriver import org.junit.Test; import org.junit.runn...
asked by 16.03.2018 / 16:35
1
answer

How to implement the max and min in jpa, to obtain the maximum and minimum date?

I have the following query @NamedQuery(name = "findRegistroAccesoByNuserid", query = "select myRegistroAcceso from RegistroAcceso myRegistroAcceso where myRegistroAcceso.nuserid = ?1 and TO_CHAR(myRegistroAcceso.fecRegistroEntrada, 'dd/MM/yyyy...
asked by 23.03.2018 / 23:43
2
answers

Error: JQuery and AJAX

I am working with jquery and servlet in java and trying to connect to a method sends me the following error.    link : Response to   preflight request does not pass access control check: The   'Access-Control-Allow-Origin' header has a value...
asked by 20.03.2018 / 19:22
1
answer

Java: get quantity of a product from the Database

I am learning on my own to do a management program for the sale of beverages. I have a table called VENTAS_HOY that stores what products were sold, as well as their quantity. It works for me, until it reaches the point of entering the tabl...
asked by 14.03.2018 / 02:03
1
answer

Collect value of the properties without knowing the key

I need to know how to collect from a properties for the value of the properties. In other words, I have the following in a properties. usuario.UE0153 = PEpe ccx dkgkdflñfg usuario.UE1222 = Antonio perez jimenez usuario.UE1525 = Jaime Perez...
asked by 05.03.2018 / 17:58
1
answer

Use HashSet and instanceof

In the following example how could the instanceof be used with a HashSet? for (int i = 0; i < empleados.length; i++) { if (empleados[i] instanceof Comerciante) { numEmpleados++; } }     
asked by 05.03.2018 / 22:32
1
answer

Represent eclipse coordinates

I'm trying to draw a series of points (coordinates) in eclipse, these coordinates are read through two ArrayList, but I have no idea to represent them in the JPanel, I leave some code: MAIN public class Servidor extends JFrame { private st...
asked by 06.03.2018 / 15:13
2
answers

It is possible to print this with "for" or some other way

package seguimiento; public class Asteriscos { public static void main(String[] args) { Asteriscos objAsteriscos=new Asteriscos(); objAsteriscos.imprimirAsteriscos(); } public void imprimirAsteriscos() { Sys...
asked by 06.03.2018 / 00:10
1
answer

Java, algorithm there is money in a piggy bank

given this statement How could I do it? I do not finish taking it out I use two Array, one for the value and the other for the amount of that value, I begin to subtract from the highest, to never stay without change. there is Money: Y...
asked by 06.03.2018 / 13:00
1
answer

Latin box in Java

Good afternoon I have to make a java application that solves the Latin picture using recursion. 0 0 0 0 1 0 0 0 1 2 0 0 1 2 3 0 1 2 3 4 1 2 3 4 5 As the truth I had no idea how to do this, investigate on the internet and I found this metho...
asked by 06.03.2018 / 23:43