Skip to main content
2 votes
2 answers
737 views

eclipse fails to display collection elements in debug mode with error message "The method toArray() is undefined for the type Collection___"

I experience problems when debugging in eclipse. Similar issues are described in a post from more than 4 years ago. It is reported to be solved by some more recent versions of eclipse (STS) but ...
r-uu's user avatar
  • 647
0 votes
3 answers
99 views

What does x=>(int)x - 48 mean when you add a number to a digit array?

so im taking number input and the im trying to add each digit to an array of int without using any loop here i got an answer int[] fNum = Array.ConvertAll(num.ToString().ToArray(),x=>(int)x - 48); ...
Vasant Raval's user avatar
1 vote
1 answer
884 views

Are there any other methods to convert Span Bytes into a Convertable base64?

Span<byte> MySpan = stackalloc byte[] { 12, 21, 32 }; MessageBox.Show(Convert.ToBase64String(MySpan.ToArray())); This block of code is the method I tried with success, but ToArray allocates ...
Hanson Stergon's user avatar
0 votes
1 answer
284 views

Using sklearn's toarray method results in the use of all RAM

In the following code on Google Colab when it reaches to the toarray method, it uses all the RAM. I looked for an answer and it's been suggested the use of HashingVectorizer. How can I implement it in ...
Asdoost's user avatar
  • 394
0 votes
2 answers
2k views

Convert Collection to int[] array

There are two existing methods named getDetails(...). One expects a minimum of one mandatory parameter and the other expects a collection (doesn't validate the content/size of the collection). The ...
explorer's user avatar
  • 1,114
0 votes
1 answer
207 views

An error occurred while loading the data of the collection file in MongoDB using the toArray() function

const express = require('express'); const app = express(); app.use(express.urlencoded({ extended: true })); const MongoClient = require('mongodb').MongoClient; app.set('view engine', 'ejs'); var ...
김민섭's user avatar
2 votes
1 answer
1k views

Java Generics: Compilation failure when using Stream.toArray()

Given a simple generic class: private static class Container<T> { private List<T> aList; private T aValue; private Container(List<T> aList, T aValue) { this....
Andreas Heidenreich's user avatar
-1 votes
1 answer
132 views

Viewing the elements of a set by set.toArray() [duplicate]

Is there a way to view the elements of a set by doing something like set.toArray()[i] (i being an integer)?
Ada's user avatar
  • 21
0 votes
0 answers
88 views

C++ to .NET Csharp swig DoubleVector.ToArray()

I have an object named result, which contains a IntegerVector and a DoubleVector in C++. I generate with a Task(Of Results) n diferent results and have them in gotresults as Taks from result, that is ...
Bruno Martinez's user avatar
-1 votes
1 answer
113 views

Convert CustomList to String/Array

I have a CustomList which does everything as needed until I encountered that code like String.join(" ", list) or list.toArray(String[]::new) doesn't work with my CustomList but works with ...
Judita 's user avatar
  • 119
1 vote
0 answers
567 views

REACTJS - GSAP "toArray" function doesn't work well with dynamic tagging

I'm trying to do a simple animation where every word of one paragraph appears one after the other but I'm struggling with gsap.utils.toArray function. I'm first using a small js function to separate ...
Alexandre PUJOL's user avatar
1 vote
2 answers
1k views

Using a List to Fetch Columns from a DataTable

I can fetch columns x1, x2, and x3 from a DataTable (DT) successfully, using e.g. Dim arrayOfObjects()() As Object = DT.AsEnumerable().Select(Function(b) {b("x1"), b("x2"), b("...
user avatar
1 vote
1 answer
238 views

Making Select and ToArray for DataTable DBNull-aware

The exception "Object cannot be cast from DBNull to other types" is being thrown when pulling data from a DataTable. Obviously the syntax below is not "DBNull aware." Is there a ...
user avatar
0 votes
1 answer
51 views

How do I remove these green dots randomly?

function levelOneGF(){document.body.innerHTML='<svg id="Layer_1" height="400" width="700" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 400"><defs><style>....
user avatar
1 vote
2 answers
162 views

How to print a specific String stored into an array of String into an ArrayList of Strings Arrays?

so, as per the question, I have this code in Java: public class example { static ArrayList<String[]> test = new ArrayList<String[]>(); private String[] a = {"this", "...
Agricolo's user avatar

15 30 50 per page
1
2 3 4 5
10