Questions tagged as 'java'

2
answers

Unparseable date: "2017-10-30T02: 00: 00.000Z"

I'm setting up a record where I pass a date and, upon saving, is showing this error java.text.ParseException: Unparseable date: "2017-10-30T02:00:00.000Z" at java.text.DateFormat.parse(Unknown Source) ~[na:1.8.0_144] at controller.saud...
asked by 29.11.2017 / 20:02
2
answers

"required int" error when executing code [closed]

I made this small program, where I want to loop, while the user chooses to register more messages. The error, after compiling the code, says:    required: int   found: no arguments   reason: actual and formal argumente lists differ in le...
asked by 15.09.2016 / 15:32
2
answers

NullPointerException error using Boolean type

I'm having problems again with this project, the application runs normally opens the screen for registration and everything else, but when you click the button to save it simply closes the app, but in the console of the firebase is registered th...
asked by 23.10.2016 / 17:58
1
answer

How to do translation in java code?

In the Android application you have to translate the xml string. How do I do this in the java code? In this code, for example: Toast.makeText(getApplicationContext(), "Carregando o aplicativo", Toast.LENGTH_SHORT).show();     
asked by 03.11.2016 / 14:56
1
answer

Convert weight to cash [closed]

I'm trying to convert weight into cash, but every time my answer is zero and I calculated here and nn should give zero kkkkk can somebody help me obs: o 5 is the price per kilo (This work will make me pass as standard give me a help pf kkkkk)...
asked by 20.11.2016 / 18:56
1
answer

How to copy an attribute from a list in java

Sample Copy: List<MyObject> listaDeObjetos = new ArrayList<>(); List<String> nomes = new ArrayList<>(); for (MyObject obj : listaDeObjetos) { nomes.add(obj.getNome()); } Is there anything in java that makes this...
asked by 05.10.2015 / 23:46
2
answers

How to pass a Char to the bank?

How do I get a Char to the Bank? Error Exception in thread "main" java.sql.SQLException: ORA-12899: valor muito grande para a coluna "SYSTEM"."USUARIO"."TP_SEXO" (real: 2, máximo: 1) at oracle.jdbc.driver.T4CTTIoer.processError(...
asked by 16.10.2015 / 14:09
1
answer

Components of the Spring MVC Framework

Good morning guys, I'm having trouble figuring out some specific information regarding Spring MVC, for example: Upload Bar: JSF uses the Progress Bar component, Struts 2 or Ajax File Upload Plugin, and Spring MVC uses the ????? AJAX Tab...
asked by 09.09.2015 / 13:30
3
answers

Getting values in String from ArrayListObject

I get all my values from the database and I put it in array list<object> I would like to know how to access the value inside that emu arraylist, for example TesteLinhas.get(0).toString() or something like this returns me to w...
asked by 29.01.2017 / 14:37
1
answer

Call another class method

I'm a beginner in java, and I'm creating a basic CRUD from a library, as I have a lot of operations, I think it's best to do a specialized class for each operation, which will call the methods of the library class. I'm doing the class of the ope...
asked by 29.06.2017 / 18:50