What are the dependencies required for the following libraries?
import java.io.StringReader;
import java.net.Authenticator;
import java.net.PasswordAuthentication;
import java.util.ArrayList;
import java.util.List;
import javax.xml.parsers.Do...
I'm creating an application that uses cardview in my list. And I'm having trouble adding the menu in the cardview, as shown below:
Mycardviewclass:classCustomAdapterextendsBaseAdapter{privateList<Palheta>palhetas;publicCustomAdapter(List&...
I have a hashmap problem in JAVA.
I'm trying to create a program that reads data from a car, save those cars in an ArrayList, and organize by the manufacturer (that would be the key) the cars of your brand.
public static void main(String[]...
public class AlunoLicenciatura extends Aluno{
private String curso;
private ArrayList<Disciplina> l_dis;
public AlunoLicenciatura(String curso,Aluno a){
super(a.getNumero(),a.getNome());//recebe o numero e o nome de al...
How can I make it appear instead of 1000 to appear 1.0k, and so on?
1000 - 1,0k
2000 - 2,0k
10000 - 10,0k
100000 - 100,0k
and etc ...
@Override
public double getValor(String arg0) {
Pessoa pessoa = Main.getPessoa();
do...
I have an exercise to solve, which is to create a simple Java language calculator.
I have to through the Terminal, send the two numbers as arguments to my program. I am using the following build command:
zeluis@zeluis-HP-EliteBook-8460p ~/...
I have the following problem writing a CSV file. The file looks like this:
NULL
My File class
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
im...
I created a "register" screen where the user informs the name / surname and where there is a Continue button that goes to another screen. I would like this new screen to open when the user hit Enter, but I do not know how to make the Enter key h...
I'm trying to set a DataSource with PostgreSQL , but it's throwing this Exception
23:36:46,381 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 2) WFLYCTL0013: Operation ("deploy") failed -...