array tag

224 questions


2 answers
92 views
0
Enter Java Decimal -> Output Hex

You need to use an array to print out a decimal number as a hexadecimal numberThere is an error when you input the value with scanner and print it out in the if statement.I'd appreciate it if you watc...

2 years ago

1 answers
112 views
0
If indexOf does not find a value (always returns -1)

I posted a question before, but I couldn't, so I'm uploading it again.The first method is ArrayList<HashMap<String,String>> al = new ArrayList<>();al.add(hm); // hm is Hashmap<Str...

2 years ago

1 answers
99 views
0
It's a C language array question

int array1[100]int array2[100]When there are two arrays like thisWhy does a compilation error occur when you do array1 = array2 in the large number sentence?What should I do to make it normal without ...

2 years ago

1 answers
86 views
0
Questions about arrays and reference variables and objects in Java

public class HeapQuiz {int id = 0; public static void main(String []args) { int x =0; HeapQuiz [] hq = new HeapQuiz[5]; while(x <3) { hq[x] = new HeapQuiz(); hq[x].id =x; x = x +1; } hq[3] = hq[...


1 answers
65 views
0
This is a question about how to use a String in a Java Array basic example!

package practice_3;import javax.swing.JOptionPane;public class ArrayTest {public static void main(String[]args) { String output = ; int n[] = new int[10]; output += subscript | value\n; for (int i = 0...

2 years ago

1 answers
88 views
0
C Language Pointer and Array Inquiries

Hello.I have a question about pointer and arrangement in C language.Why do I see the same number as 1 if I do p-myarr like the following code?If you calculate based on the output address value, you sh...

2 years ago

1 answers
131 views
0
Can you compare arrays of different lengths?

public static void main(String[] args) { int[] array1 = new int[4]; int[] array2 = new int[7];Arrays.equals(array1,array2);}I don't get an error even if I do this, but I'm not sure if I compared it pr...

2 years ago

1 answers
62 views
0
I saved the array as txt, but I don't get all the elements.

You want to save 3D data as an array and print it out.The 3D data was stored in an array called volumeArray.But when I used print to print out the array, all the arrays were not printed out, and in th...

2 years ago

1 answers
112 views
0
Why is indexOf not working in the array divided by the string split('\n') of the text file received in ajax?

I wrote it in a script inside the body. $.ajax({ url: aaa.txt, success: function(result){ console.log(result); var rArr = result.split(\n); console.log(rArr); var ee = rArr.indexOf(01001); con...

2 years ago

1 answers
77 views
0
java array Can you check if a value exists in a specific index?

int[ ] [ ] array = new int[3][3];whenIf the value of array[1][2] exists, can we make it true if it does not exist?

2 years ago
« - 9 - »

© 2024 OneMinuteCode. All rights reserved.