Questions tagged as 'java'

1
answer

How to detect a click on an array of buttons in Android Studio

Look, I have an array of buttons that I obviously created in the "Java Code", I implemented the class of View.OnClickListener and within the onClick method (View view) I have the following: public void onClick(View view){ for...
asked by 09.03.2017 / 04:08
2
answers

Java - Ignore possible error as in PHP with @

I would like to make a conditional that I can receive a word like the number one or that the number 1 is entered directly. Having a conditional like the following: if ($var == "Uno" || @intval($var1) == 1){ echo "Picked 1"; } In...
asked by 07.03.2017 / 04:50
1
answer

Long.valueOf does not show zero to the left

I have a problem when making an append to a StringBuilder from a linkedList and display it in the form of long, the code is as follows: for (int i=0; i < new_list.size(); i++) { stb.append(new_list.get(i));...
asked by 07.03.2017 / 05:30
2
answers

Java - Problem with if [duplicate]

I have the following code package Condicionales; import java.util.Scanner; public class PruebaJava { public static void main(String[] args) { /*float numero1; float numero2; float total; */Scanner lecto...
asked by 07.03.2017 / 05:40
1
answer

What do the entity, control and interface classes refer to?

How far I have understood the entity classes are those that are used to model the data, for example create a Person class that groups all its attributes. The control classes are more than responsible for performing what the user wants. The...
asked by 26.02.2017 / 23:55
1
answer

Number generator with Random [closed]

Someone could tell me how to make a kind random number generator with the random function (that throws several random numbers at the same time). Thank you.     
asked by 01.03.2017 / 00:50
4
answers

Error Can not convert 2/27/17 12:00 AM of type class java.util.Date to class java.sql.Date

I need Guidance, I have this form xhtml with primefaces and I want to store date and time from the calendar component to my MySql as I resolve the error: javax.el.ELException: /create.xhtml @44,91 value="#{data.kardex_create.fechaingreso}:...
asked by 27.02.2017 / 17:20
2
answers

Constant movement of an actor in libgdx

I am developing a game in libgdx . The game consists of an actor, which the camera constantly follows with that actor centered. My problem is that the movement of the actor is not resolved, because I would like it to behave like S...
asked by 27.02.2017 / 09:34
1
answer

How can I add events to the FullCalendar from a database in Postgres

good morning. My problem is that I have a system made in JSP which I added the free code of FullCalendar but I want to add events that I have in a database made in Postgres, the problem is that I do not know how to enter those events that I r...
asked by 27.01.2017 / 17:01
1
answer

Problem accessing the Access Database with UcanAccess in Java

I am with a simple project, learning to create, modify and access databases from Netbeans with Java . They force me to use a Microsoft Access database, and I know there are problems accessing them from Netbeans version 8 . I am using the...
asked by 26.01.2017 / 22:27