Questions tagged as 'java'

0
answers

Error compareTo Key

Save personal, I have the following problem, I am implementing code that returns me the median of a sequence, using max-heap and min-heap. Before even completing the code the compiler returned me an error: method compareTo in interface java.la...
asked by 03.04.2018 / 01:19
1
answer

Verify equal numbers java

Someone can help me here. I did a 3-note check within a while. I need two notes to be the same as a Student1 and Student2 messages (Only display if the two notes are equal) Approved. I was able to do it with only the highest grade. packa...
asked by 03.04.2018 / 00:07
1
answer

Iterative PreOrder - Binary Search Tree

I have a function that traverses BST ( binary search tree) in pre-order recursively. The function is as follows: public Iterable<Key> preOrder() { Queue<Key> queue = new Queue<Key>(); preOrder(queue,root...
asked by 10.04.2018 / 13:00
1
answer

Error trying to access the JAVA WEB database

When I run the program it gives the following error:    HTTP Error 500 - Internal Server Error.       java.lang.RuntimeException: java.sql.SQLException: No suitable driver found for jdbc: oracle: thin: @localhost: 1521: XE I only get thi...
asked by 10.04.2018 / 10:02
0
answers

Prettyfaces error NoSuchMethodError

Hello, pretty faces throws exception NoSuchMethodError when trying to call com.ocpsoft.pretty.faces.config.reload.PrettyConfigReloader.reloadIfNecessary(Ljavax/servlet/ServletContext;) . I use the following dependency: <depe...
asked by 01.04.2018 / 14:50
1
answer

Change visibility

How do I change the visibility of a layout that is in another activity? I want to do this by clicking on an image .. I know how to use the onClick method. it just lacks the imagination of how to change visibility at runtime. I've tried: a...
asked by 01.04.2018 / 02:29
0
answers

How do I access one method of an ArrayList in another frame? [duplicate]

Class Person: public class Pessoa { private String nome; private int idade; public Pessoa(String nome, int idade) { this.nome = nome; this.idade = idade; } public String getNome() { return nome;...
asked by 02.04.2018 / 00:20
0
answers

Digital Certificate Read directly from Smart Card

I'm trying to access a digital certificate directly from the smartcard through the APDU command, but I have not yet succeeded in locating it. <p>Lista : [PC/SC terminal Alcor Micro USB Smart Card Reader 0] <p>Terminal Selecionado:...
asked by 13.04.2018 / 17:02
0
answers

Error executing setOnClickListener

I can not do a simple BMI calculation. This is the error that appears in the image. Code: ButtonCalcular.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { /* Variáveis que r...
asked by 01.04.2018 / 20:06
0
answers

Check changes to JSON data using Volley

I have an application that after scanning a qrCode displays the item information of an API. But it has a value that changes every second in this API. I want to know how I can display this value whenever I change the screen without having to scan...
asked by 13.04.2018 / 19:35