Questions tagged as 'java'

1
answer

How can I write the command to input external data in Java?

I migrated from C to Java and would like to know which command allows the user to enter external data and how that command would be in code. In language with C use the code below: scanf(%tipo_da_variavel, &nome_da_variavel);    ...
asked by 01.08.2017 / 01:04
1
answer

Pass more than one parameter through URL

I have the following code: public interface service { @GET("?acao=R&tipo_refeicao={tipo}&data={data}") public void getCardapio( Callback<List<Cardapio>> getCardapio(@Query("tipo") int tipo, @Quer...
asked by 31.07.2017 / 23:41
1
answer

How to implement application rest in production? (Web or cloud servers) [closed]

I'm new to platform and I'm learning java doing a little android project that queries database, but I saw that android is not cool to communicate with database directly, so I learned to create an api rest using netbeans, tomcat and glassfish. So...
asked by 03.07.2017 / 22:46
1
answer

Spinner.setadapter on a null object reference [closed]

The array of players is populated with data but gives error in method setadapter . Spinner spinnerJogador1; ArrayList<JogadorModel> jogadores = jogadorRepository.SelecionarDisponiveis(); dataAdapter = new ArrayAdapter(this,...
asked by 04.07.2017 / 11:57
1
answer

readLine () returning null

I have a problem with my code. I need to access my website and check the response it gives me. But readLine returns null (End of transmission) on the first and only line. It does not show any errors, it only returns null (Ví through debug)....
asked by 04.07.2017 / 05:56
1
answer

How to create a "new file" .txt in java?

My questions are: is this code correct? how do I clear the screen and open the new created file? menuNovo.setOnAction((ActionEvent e) -> { Stage janela = (Stage) areaTexto.getScene().getWindow(); String nome = JOptio...
asked by 02.07.2017 / 22:53
1
answer

Change the DrawableLeft property of a TextView

I have a SimpleAdapter that I use in a listview to show data that comes from the database. Follow the code below Map<String, String> map; for(int i = 0;i < buscaCombustivel.getCount();i++) { map = new HashMap<String, String>...
asked by 03.07.2017 / 17:09
1
answer

dataTable table does not work correctly

I am implementing a dataTable in my web project, I have already re-implemented the dataTable several times to fix the problem, but with no success. The problem is that the dataTable features do not work in my table. As you can see below: Ialrea...
asked by 15.07.2017 / 19:37
1
answer

Login Authentication

I would like my code to make the comparison of the email also if it does not exist, but it only does the comparison of the password, how to make the comparison of the two together? if (mEmail.equals(email)) { if (mPassword.e...
asked by 30.07.2017 / 15:46
1
answer

Best Language / Library to handle prints [closed]

Here in the company that I work for, we have a system in clipper + PCL that makes the monthly impressions, with it we manage to handle tray and control front and back. But it is increasingly difficult to maintain it, because we have to run it in...
asked by 31.07.2017 / 14:05