Questions tagged as 'java'

0
answers

Android - getX () function does not work

I'm trying to create a game using java without the use of other libraries. I was able to do everything I needed so far but I am not able to use the getX () function in ImageView controlled by the player in this section: ImageView player = (Ima...
asked by 27.06.2018 / 20:28
0
answers

Jackson and json array

All good people? I'm killing my head for a few days but without success. I need to insert information into the DB that comes through JSON. It turns out that when an array comes, it does not want to insert. Explain better: In the domain,...
asked by 27.06.2018 / 04:24
1
answer

How do I not miss the next screen?

I'm having a little problem with a quiz application. when the user clicks the button comes the next question. I set a delay of 1 sec. However, if the user clicks 2x on the button within this delay of 1 sec, when they open the next question it wi...
asked by 27.06.2018 / 03:10
0
answers

Htmlunit for a specific script

Good morning. I'm trying to block a specific script in HtmlUnit (Java) that is not letting other information access, I've tried this code, but when I give a print page.asXml () it continues to block page content. Code used: WebClient web...
asked by 26.06.2018 / 15:09
0
answers

Error while showing a list of images that were retrieved from DB

Images are retrieved normally but are not displayed in the gallery. NOTE: If I take an image from the list and play in a p:graphicImage it works normal. MBean: package org.salomao.bean; import java.io.Serializable; import java.time....
asked by 26.06.2018 / 17:54
1
answer

Handle an object that is present inside an ArrayList

I need to do some combinatorial analysis operations with information present in objects, but I do not know how to extract them from ArrayList . I need to remove the content present in the variable priority and absence of each of the object...
asked by 27.06.2018 / 06:04
2
answers

Exception in thread "main" java.util.InputMismatchException

I made a simple program, just to calculate a mathematical function so I get an exact result, but there were some complications in Java. Digite o valor de x: 0.2 Exception in thread "main" java.util.InputMismatchException at java.util.Scanne...
asked by 29.08.2016 / 03:37
1
answer

Intent on fragment activity Android

How do you open a new screen or link through the intent in the fragment activity? See that you have a button at the end how do you open it?     
asked by 05.07.2018 / 23:00
0
answers

How to instantiate an object from a deployed class in different EAR

I have 2 projects where each one has a built and deployed EAR in JBOSS. I wanted to instantiate a class that is deployed in Project EAR 2 in project 1. That is, within project one, I wanted to pass the name of the deployed class of project 2 and...
asked by 25.06.2018 / 17:20
1
answer

Change TextView Text

Suppose I have text inside a TextView, there is the possibility to change android: text remotely, without touching the xml, by means of a post in an external database, for example, a phrase thrown in on a bank which can be changed any minute, ca...
asked by 28.08.2014 / 20:10