Questions tagged as 'java'

1
answer

configure time zone JDBC driver java

I present an error when executing my code from the persistence part which is the following Exception in thread "AWT-EventQueue-0" javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20140...
asked by 11.02.2017 / 03:55
2
answers

Problem with JavaNullException

I'm doing the following problem:    Create a record called Point that contains 2 fields: X (Real) and Y   (Real), which represent the coordinates of a point. Create a   Register called Triangle that contains 3 fields of type Point.   I develo...
asked by 11.01.2018 / 20:54
4
answers

How can I unify two catch?

We are doing tests to learn how to use exceptions. public class Principal { public static void main(String[] args) { int arrayEnterosE[]={1,2,3,0,7}; try{ for (int i = 0; i < arrayEnterosE.length; i++) { int...
asked by 09.05.2017 / 12:20
4
answers

How to use an array of an object

I have a class Alumnos where I declare a Array of three elements: public class Alumnos extends Persona { private int numeroExpediente; private int nota[]; public Alumnos() { numeroExpediente=0; int not...
asked by 22.08.2017 / 12:33
1
answer

select an option with multiple select

What I want is that when there are several selections, each one changes an id, I do not know if I explain it, I want to select an input and if this permission disappears the input will be several select <!DOCTYPE html> <html> <h...
asked by 20.10.2016 / 23:39
1
answer

Exit the Loop without assigning value

I am doing a task of my DAW course, and I am encountering the following problem: The exercise asks that 6 values correspond to the daily sales amounts of our business, starting at TUESDAY and finishing at SUNDAY (keep in mind that MONDAY is c...
asked by 18.01.2017 / 11:41
1
answer

Add in ActionBar

I would like to know how to add an icon in the ActionBar of my application I have the following XML code <menu xmlns:android="http://schemas.android.com/apk/res/android" > <!-- "Mark Favorite", should appear as action button if poss...
asked by 19.11.2016 / 11:02
2
answers

Alternatives to Java Swing [closed]

As some may already know, Oracle has stopped the development of the popular graphical interface library Swing . I consider javafx as a relatively incipient technology to replace Swing , for which I would like to know other Java li...
asked by 23.01.2016 / 15:04
3
answers

I can not convert from int to string to java

I convert the int variable into integer but when I try to replace its value with a string it does not work for me, what can the solution be?     
asked by 18.04.2018 / 05:19
2
answers

When to use an API and when a Web Service? [closed]

I am currently in a project in which I have to perform a web service or an API, but not having much knowledge of these I do not know what to use, the client that will use it has to pass certain parameters and with these Parameters the web servic...
asked by 11.12.2018 / 17:16