array tag

224 questions


1 answers
82 views
0
I want to put int[] in the List , how do I do it?

I want to put int[] in the list, how do I do it?


1 answers
73 views
0
How do I sort the arrays in descending order in Java?

You can just sort the arrangement in ascending order. Is there an easy way to sort in descending order?

2 years ago

1 answers
94 views
0
What is the difference between int[] array and int[] array?

When I was studying in a book, I learned int[array], but recently I looked at other people's sourcesThere were a lot of people who declared int[] array. I was just trying to ignore it, but I suddenly ...

2 years ago

1 answers
115 views
0
How do I add a new element to an array?

String[] where;where.append(ContactsContract.Contacts.HAS_PHONE_NUMBER + =1);where.append(ContactsContract.Contacts.IN_VISIBLE_GROUP + =1);I tried this way to add elements to the String array, but it ...

2 years ago

1 answers
83 views
0
How to replace an Integer ArrayList with an int array

To replace the Integer type ArrayList with an int type array List<Integer> x = new ArrayList<Integer>();int[] n = (int[])x.toArray(int[x.size()]);I did this, but there is a compilation err...


1 answers
70 views
0
How do I declare an array in Python?

It's a very basic question. How do I declare an arrangement in Python?Even if you search on Google, you can only see the list, but I wonder where they declare the arrangement.

2 years ago

1 answers
116 views
0
In Java, equals and Array.equals

What are the two differences when comparing arrays in Java?array1.equals(array2);Arrays.equals(array1, array2);

2 years ago

1 answers
90 views
0
For-each syntax in JavaScript

In Java, there's the same for syntax at the bottom. String[] myStringArray = {Hello,World};for(String s : myStringArray){ //Do something}Is this not available in JavaScript?

2 years ago

1 answers
111 views
0
When erasing elements of an array from JavaScript

When you erase elements of an array in JavaScript, you use the delete operator or the array's method, splice.What's the difference between these two?myArray = ['a', 'b', 'c', 'd'];//delete myArray[1];...

2 years ago

1 answers
110 views
0
Simple way to populate an array with zero in JavaScript

I want to fill the array with zero in JavaScript, what should I do?

2 years ago
« - 7 - »

© 2024 OneMinuteCode. All rights reserved.