Questions tagged as 'java'

0
answers

Spinner with SharedPreferences

Good evening. I'm trying to save the choice the user makes in Spinner in SharedPreferences, when he clicks OK, but I'm not getting it, can anyone help me? Then I want to redeem the choice made when it opens the application again and places it in...
asked by 11.04.2018 / 02:40
0
answers

How to save checkbox in sqlite using recyclerView - android

So I have a project that has a checkbox list that when clicked it would record in a column in the bank that items were marked, so that's fine. So I did not take into account the size of the list and then when I did test using a list that used sc...
asked by 10.04.2018 / 23:46
0
answers

View logged in user profile data

Well folks to creating a panel where you have the section of my profile for the Administrator that is online can see the information of your profile. However, however, however I am having problems creating the profile page, I have read some tuto...
asked by 10.04.2018 / 22:46
0
answers

Open link that would open in the direct browser in my app

I would like something similar to what Instagram / Facebook do, sort of when clicking a link opens an intent asking which browser the person to use. Ex: The person clicks on the link: facebook.com/mypage there will appear the option to open with...
asked by 11.04.2018 / 02:17
0
answers

Format Double with two house

I am dealing with a .csv file with an id , value (1,214.45) and need to format a final sum of these values with only two boxes after the comma. p> Developed the following code snippet: 'DecimalFormat df = new DecimalFormat("0.##"...
asked by 18.04.2018 / 07:14
1
answer

How does Spring MVC identify the Model, View, and Controller files?

I wanted to know how Spring traces these files. So far I know that Spring MVC has DispatcherServlet which is responsible for sending requests to controllers that respond to such URL. But how does Spring do to return / render the correct p...
asked by 18.04.2018 / 14:02
1
answer

Convert java.util.date to java.sql.Date

With this line of code will I be able to pass java.util.Date to java.sql.Date ? java.sql.Date sqlDate = java.sql.Date.valueOf(String.valueOf(date)); Given that you date this format: Sat Jul 01 00:00:00 GMT+01:00 2017     
asked by 13.07.2017 / 17:35
1
answer

How to create and authenticate email and password in firebase?

I am doing a class and I try to register the email and password, from that code, in the firebase, but it is not created. I can not get this authentication. The database I created to test whether I was able to "communicate" with the firebase a...
asked by 10.04.2018 / 18:32
0
answers

Spring Boot query does not return records

I'm developing a system with Java 8 and Spring Boot with JDBC accessing an Oracle base. When I make a query using the NamedParameterJdbcTemplate, it does not return any records, but if I copy the same query and search the Oracle client directly,...
asked by 10.04.2018 / 16:05
0
answers

how to apply junit in this case

I have this code: public void registraEntrada() { System.out.print("Digite o seu nome: "); String nome = sc.next(); System.out.print("Digite seu CPF (apenas números): "); String cpf = sc.next(); System.o...
asked by 10.04.2018 / 18:39