Questions tagged as 'lista'

1
answer

How do I switch between the next element and the previous element of a ListIterator with just one click?

I have a list of words stored in my listaPalavra variable already initialized with values, of type ArrayList<T> : listaPalavra.add("Palavra 1"); listaPalavra.add("Palavra 2"); listaPalavra.add("Palavra 3"); listaPalavra.add(...
asked by 31.10.2016 / 02:11
1
answer

What's wrong with my threaded list?

I've implemented a linked list but when I enter 2 items, I remove the last one and add it again, for some reason it says the value is null. public class ListaDinamica<T> { private class Celula<E>{ E item; Ce...
asked by 09.09.2015 / 18:11
1
answer

What are columns-list of a data.frame?

tidyverse encourages the use of list-columns in < a data / data / data.frames "class=" post-tag "title=" show questions tagged 'data.frames' "> data.frames . But, after all, What are columns-lists? On what occasions are they commonly...
asked by 26.12.2018 / 14:31
2
answers

Difference between Find, Exists and Contains of ListT class

I'm working with the class List<T> , so I came across some search methods, if I may call it that: Find ; Exists ; Contains ; I was wondering what the difference was between them, so I searched the Micr...
asked by 18.05.2017 / 20:01
1
answer

What is the difference between sorted () and .sort ()?

Why is the sorted() function considered more direct than the .sort() method used in lists with tuples?     
asked by 29.04.2016 / 19:32
2
answers

How to join lists in C #?

I have two classes: public class Produto { public int ProCodigo { get; set; } public string ProNome { get; set; } public int DepCodigo { get; set; } public virtual Departamento Departamento { get; set; } } public class Depa...
asked by 11.11.2015 / 18:54
1
answer

Operation with lists of very large sizes

I have a code that calculates the area of the intersection between two polygons and for this I use lists to save the coordinates of the vertices of the polygons, however they are many polygons and it takes an average of 6h to run the whole code....
asked by 14.06.2016 / 05:54
1
answer

How to simplify the code with ForEach's List?

How to use ForEach() of List in the implementation below using System.Collections.Generic; public class Program { public static void Main() { List<Pessoa> pessoas = new List<Pessoa>(); pess...
asked by 17.10.2015 / 01:01
5
answers

How to pass a list of values to a Stored Procedure?

I am creating a stored procedure in SQL Server 2008 R2 and would like to pass a list of values by parameter, for example: Table produto ---------------- | id | nome | | 1 | maçã | | 2 | pera | | 3 | uva | Stored Pr...
asked by 03.01.2015 / 14:10
2
answers

Compare contents of a Column

I'm a beginner in R and needed help comparing column contents. First I ordered my table based on a specific column. For this I used the following function: x = fread ("x.txt",sep=";") x_ordenado = x[order(x$V3),] I'm working with files...
asked by 20.05.2015 / 22:26