Questions tagged as 'java'

1
answer

ArrayList adding wrong values

I have ArrayList that should be receiving numbers from 0 to 15, within for , however it seems that the last value 15 is being written to all indexes. ArrayList <PaginaPrincipalSO> FilaTPSO= new ArrayList(); PaginaPrincipalSO...
asked by 30.10.2014 / 23:32
2
answers

Layers to develop web service

I'm developing using REST (with RestFull API), where I plan to use two layers in the system: BLL and DAL. BLL = > It would be the business rules layer. DAL = > It would be the layer responsible for accessing the data. It could be DAO...
asked by 02.06.2015 / 21:35
1
answer

How to implement this class in a TextView so that it works correctly?

I found this " self-shrinking " code in the link and would like to know how to implement in TextView. ** * DO WHAT YOU WANT TO PUBLIC LICENSE * Version 2, December 2004 * * Copyright (C) 2004 Sam...
asked by 15.06.2015 / 22:43
1
answer

Finding the object class in Java

I have a set of functions to configure a set of parameters in Java of type like this: public void Util.setParametros(Integer par) {} public void Util.setParametros(String par) {} public void Util.setParametros(Long par) {} public void Util.set...
asked by 29.06.2015 / 19:13
1
answer

Error - You must supply a resource ID for a TextView

03-17 08:31:32.283: E/ArrayAdapter(1085): You must supply a resource ID for a TextView 03-17 08:31:32.283: D/AndroidRuntime(1085): Shutting down VM 03-17 08:31:32.283: W/dalvikvm(1085): threadid=1: thread exiting with uncaught exception (group=0x...
asked by 17.03.2014 / 13:46
3
answers

Date format incompatible when importing data from Excel to MySQL (00-00-0000 VS 0000-00-00)

I'm trying to import data from an Excel spreadsheet to MySQL, the problem is that I have a column in Excel that the dates are in dd-mm-yyyy format and the format accepted by MySQL is yyyy-mm-dd . I want to know how to convert the da...
asked by 14.03.2014 / 21:00
2
answers

Socket locked when performing data exchange

I am trying to execute server and client code in Java for the client to send a String , the server to process and return it and the client to receive. The customer is always kept listening. But after receiving String it hangs....
asked by 18.03.2014 / 15:36
1
answer

How to sort and clutter a datatable in JSF by clicking the column?

Well, I have a JSF application, I would like to know how to sort and clutter datatable when clicking on the column, in that table there are 6 columns and 3 of them would like me to click it to sort according to the clicked column? * On-demand...
asked by 03.05.2014 / 17:53
1
answer

I'm trying to list data from my bank, more precisely from column cpf, but I can only bring a given

List < VarUnica > list = new ArrayList < VarUnica > (); String queri = "select cpf from funcionario"; VarUnica alt = new VarUnica(); Statement ttpa; try { ttpa = Conexao.getConexao().createStatement();...
asked by 06.05.2016 / 20:50
1
answer

Set of 3 Java ports

I have to do an exercise in Java that consists of creating an array [3] [3] where each line would be a phase of the game. The user must guess which door the prize is on. For this I need to do a random on each line assigning the value 1 for the...
asked by 17.04.2015 / 11:45