oop tag

60 questions


2 answers
99 views
0
Put another array value in the Python for statement array.

aa.pyrecords1 = [(a,1),(b,2),(c,3)]records2 = [(a1,4)]# Each array value has a records2 value as many as the number of records2 value.i = 0while i < len(records1): records1[i].append(records2) i = ...


1 answers
146 views
0
Why do you use > or < instead of != when increasing by 1 in the for statement?

Why do you use > or < instead of != when increasing by 1 in the for statement?In the chords that other people made,I've rarely seen a for statement that increases by 1.Is there any special reaso...

2 years ago

1 answers
155 views
0
I want to learn how to handle big data using Hadoop. Please recommend a good textbook or website

I'm trying to study big data, but I'm totally ignorant. It's just a programmatic concept I don't know anything about clustering, nodes. I would like to learn using Hadoop, so please recommend a good t...

2 years ago

2 answers
87 views
0
I want to know the difference between ++i and i++

What is the difference between the potential increase (++i) and the posterior increase (i++) in C?Which of the two should I use when I go around the for door?


1 answers
133 views
0
To check null in a repeat statement

Is there a good way to check if the list is null when going around for loop in Java?if (someList != null) { for (Object object : someList) { // // do whatever }}//I if (someList == null) { return; //...

2 years ago

1 answers
82 views
0
How do I turn std::map to repeat?

std::map< std::string, std::map<std::string, std::string> >My brother m[name1][value1] = data1;m[name1][value2] = data2;m[name2][value1] = data1;m[name2][value2] = data2;m[name3][value1] =...


1 answers
144 views
0
Which is faster, "for(;)" or "while(TRUE)?

[Which is faster, (1) or (2)?I thought of this while looking at for (;;) { //Something to be done repeatedly}I've seen a lot of codes like this, but I haven't seen them write in while(true).I think wh...


1 answers
90 views
0
This is a question about the state of putting the try-catch inside the while.

public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println (Determine if the digit 10 and the digit 1 are the same.); System.out.println (Enter 0 to stop; Sy...

2 years ago

2 answers
74 views
0
How do I know how many times I repeat a for-each door in Java?

for(String s : stringArray) { doSomethingWith(s);}How do I know how many times I repeat this if I have this for-each syntax?for(inti=0;i<boundary;i++) The value of i is the number of iterations In ...

2 years ago

1 answers
145 views
0
Which is faster, while(1) or while(2)?

In the interview, I asked which one would be faster, while(1) or while(2)Whether it's (1) or (2), it's trueI said I think they'd be at the same speedwhile(1) is faster. Why?while(1) { //What code?}orw...

2 years ago
« - 4 - »

© 2024 OneMinuteCode. All rights reserved.