Questions tagged as 'java'

1
answer

Access the daughter class from the father | Java

I have an abstract class Publicaciones and two child classes: Libro and Revista . I have a ArrayList of Publications, where I keep objects Libro and objects Revista , but when accessing the attributes o...
asked by 03.12.2016 / 15:20
2
answers

How to print some characters from the Ascii table? Java POO

I have to print by console the special, numeric, uppercase and lowercase characters of the ASCII table; But it does not print anything. I tried to get the for and only this sign comes out: for each method that I call in the main. I l...
asked by 04.12.2018 / 19:41
3
answers

Does not respond ActionListener CommandButton Web App

I have a web application made in Netbeans 8.1 , Java 8 and Maven First of all in my class Managed Bean Controller.java place the label @ViewScope . When I compiled and deployed the application I got the error...
asked by 28.01.2016 / 00:52
2
answers

JSF error when sending values to the managedbean

Good afternoon, I am learning Java EE and between practice and practice I have come across an error that I can not solve, it is but they can help me to continue with my learning process. The error he gives me is this:    /index.xhtml @ 23,111...
asked by 30.01.2017 / 21:24
2
answers

Incompatible types Java error

I am doing a program where the user will give his number and countable and his name, however he does not run and an error appears saying: incompatible types required: int   found: String What am I doing wrong in my code? import javax.swing....
asked by 27.01.2017 / 01:09
1
answer

Problems when implementing OnLongClickListener [closed]

The error:    Error: (36, 10) error: reached end of file while parsing I know the error is at the end, but I can not solve it My code: public class MainActivity extends AppCompatActivity { ImageView logo_app; @Override...
asked by 26.01.2017 / 14:09
2
answers

What difference and benefit does an array have against the listarray

Hi, I'm a java programmer and I'm seeing some that say it's better ArrayList than a Array normal? I honestly do not see difference I see it the same     
asked by 03.02.2017 / 06:03
1
answer

I can not get a parameter of a Function void

I would like to get Coorxcen, I gave it return Coorxcen, but I get an error that it's a void function, how could Coorxcen get? public LadriMoviEntity(World world, Texture pared, float CoorXcen, float CoorYcen){ this.world= world; this....
asked by 23.05.2016 / 01:13
1
answer

How to add elements to an Array in Java?

The problem that I am having is that I have an array with a certain size and in it elements will be added but I can not do it in the traditional way since the system will not know which is the next position. public class Equipo{ private S...
asked by 12.12.2018 / 00:52
1
answer

Get only the time of a TimeStamp (JAVA / Android)

I would like to know how I can get only the time of a TimeStamp like the following: From here I suppose that if I only take the time I should be given 20:00 PM (I do not want seconds). I have also read online that people prefer to us...
asked by 12.10.2018 / 22:41