compare tag

12 questions


1 answers
112 views
0
It's weird to compare integers with is

When running Python 2.5.2>>> a = 256>>> b = 256>>> a is bTrue # Of course it's true>>> 257 is 257True # If you compare 257 directly, it's true>>> a = 257&g...


1 answers
82 views
0
I'd like to compare class fields in Java, but I have a question

public class Number { int[] array0 = new int[]{2,7,19,25,29,36,16}; int[] array1 = new int[]{2,10,12,31,33,42,32}; int[] array2 = new int[]{3,8,19,27,30,41,12}; int[] array3 = new int[]{2,6,7,12,19,45...

2 years ago

1 answers
74 views
0
I have a question regarding the implementation of not opening today.

The desired behavior is If the date and current date are the same if you check not to open it today and reload it, it is 0 if X is different.The current implementation status is that when checking, sa...

2 years ago

1 answers
128 views
0
Using Android Studio String Comparative Syntax

Source in use String[] array_word; array_word = readMessage.split(); for(int i=1;i<65;i++){ if(array_word[i] == '0'){ array_word[i] = null; } }I'm putting what I received as a rea...

2 years ago

1 answers
143 views
0
I'd like to find the matching values in List 1 and List 2. - Python

I'm a beginner at Python.I couldn't find what I wanted even if I searched it.I ask for your help me.List1 = [{'id':1}, {'id':2}, {'id':3 }, {'id':4}]List2 = [{'id':1}, {'id':4}]If you compare the valu...

2 years ago

1 answers
157 views
0
To compare multiple variables to a single value

I'm now creating a function that returns a string of three words by comparing several variables with one integer value. I wonder how to write this in Python. For example, x = 0y = 1z = 3Mylist = []if ...


1 answers
130 views
0
How do I compare strings with Java Scanner input values?

I'm sorry to ask you a question as soon as I signed up.System.out.println(Inp.nextLine() == Admin);In the code above, no matter how I give you the input value, you get the false value, and you get the...

2 years ago

1 answers
104 views
0
To compare strings regardless of case

What is the best way to compare strings regardless of case?hello python!HELLO PYTHON!Hello PYThON!I'd like to say that's all the same.Please tell me the most Python-like chord


1 answers
124 views
0
If "==" and "is" are different results when comparing strings

Var1 and var2 are storing the same string public var1 is var2 for false,In var1 == var2 , TrueI watched a program that returns.I experimented and now both return True.Why is that?s1 = public!s2 = publ...

2 years ago

1 answers
101 views
0
Differences between equals?, eql?, ===, and ==

Find out the differences between equals?, eql?, ===, and ==.What we've found so far isI haven't figured out what eql? is doing with default yet, and I'm not sure I just looked through it.Ruby has many...

2 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.