Questions tagged as 'arraylist'

1
answer

JSON does not convert special character?

I have a ArrayList and when I convert it to a Json using Gson the special characters do not match the serialization. Obs My bank and project is in utf8 encoding. I'm serializing ArrayList like this: C...
asked by 21.03.2017 / 22:37
2
answers

How do I manipulate the order of the files in an ArrayList?

I'm developing a program, in which part of the processes requires that I take the numbering of the last file listed within a ArrayList . My question is this, when my ArrayList starts adding the files listed in the directory it ad...
asked by 17.12.2016 / 15:43
1
answer

How to reference an arrayList of another class

Personally my code is still unfinished and I'm creating a library system how college work I want to do as a reference to use an array list of another class in a new class. I want to use the same ClassList array as the Book class for the BookLoad...
asked by 30.05.2016 / 06:47
0
answers

How to display data from a TXT in my arrayList - Android Studio [closed]

I currently do this: ArrayList<produtoItem> lista = new ArrayList<produtoItem>(); lista.add(new produtoItem(R.drawable.imagem, "AA", "AA", "AA", "AA")); adapter = new produtoAdapter(this, lista); ListView listView = (ListView)...
asked by 28.12.2018 / 06:04
0
answers

How to return Json text from BD to ArrayList in Java

I'm having trouble converting a set of Json text from the database to a set of ArrayList text in Java. Here is the code below: Model.java public class Sala { private String professor; private ArrayList<Aluno> alunos; /...
asked by 30.11.2017 / 22:41
0
answers

How to get in Arraylist in a JSP and pass as parameter to a Servlet (Link)

This list has the BookIndicate, BookIndicate, BookIndicate, which is displayed on the page correctly. But I want to create a link to a Servlet by passing the BookId. How do I do this? Here is the code:     
asked by 29.09.2017 / 23:11
1
answer

How to filter values by keyword in array?

The codes below are not working very well the way I want: $array = array('January', 'February', 'March', 'April', 'May', 'June'); function filterDataByValue(array $array, $value) { $filtered = array_filter($array, function ($var)...
asked by 29.08.2017 / 00:25
1
answer

Item selected in Spinner does not appear in Toast

When you click on the item in Spinner, Toast is not called, nothing appears. public class RegistrarActivity extends AppCompatActivity { private ImageView botaoVoltar; private EditText textoCPF, textoEmail; private Spinner spinnerCliente; priv...
asked by 13.07.2017 / 08:56
0
answers

How do I access a pdf file stored in R.raw in the android SDK?

I think I'm missing some information for the pdf file to appear in my app. I used the following line of code inside the OnCreate method: PDFView novo = (PDFView)findViewById(R.id.pdfView); novo.fromAsset("arquivo"); But stil...
asked by 17.05.2017 / 17:44
2
answers

How to convert a list to string and vice versa?

I have a list: ('47075', 'josenestle', 'i need help') I do str1 = str (list) and I have it in string. However if you do list (str1) I do not retrieve my list. I can not find an obvious solution, help would be very grateful.     
asked by 30.04.2017 / 11:31