New course!
Every coder should learn
Generative AI!
Try a free lesson
Courses
Courses
Code Compiler
Code Compiler
Discuss
Get Pro
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
String s1 = new String ("Hi"); String s2 = new String("Hi"); Why s1 == s2 returns false ??
java
0 Votes
6 Answers
14th Sep 2017, 9:34 AM
Divya Vishwakarma
What is the difference between 1. String s1 = new String ("abc"); 2. String s1 = "abc"; ?
constructors
string
1 Vote
1 Answer
15th Mar 2019, 5:28 PM
Soma Venkata Sai Krishna
String s1 == string s2 produce the output as false while we assuming the same string in both s1 and s2..
c++
java
2 Votes
3 Answers
23rd Sep 2018, 8:13 AM
M.MANIVANNAN
s1 =[3,4] s2 =[1,2] s3=list() i=0 j=0 for i in s1: for j in s2: s3.append((i,j))
for
loops
nested
-4 Votes
35 Answers
31st May 2020, 7:10 PM
SAADAT ALI
s = input() def hashtagGen(text): s1 = s.replace(" " , "") return "#"+s1 print(hashtagGen(s))
python
1 Vote
8 Answers
22nd Jun 2022, 2:12 PM
Raj Jaiswal185
I have this program and it’s telling me theres a problem with the last s1
s1
sintax
1 Vote
8 Answers
1st Mar 2018, 3:22 PM
Camila Lancheros
s="hello" s1="elloh" if s1 in s+s: print("True") else: print("Fasle") How to implement this in Linked List ?
linkedlist
lists
python
python3
1 Vote
1 Answer
11th Feb 2022, 11:11 AM
Manoj Bhaagam
struct student { int age; int grade; char name[40]; }; int main() { struct student s1 ={ .age = 18,.grade = 7
c
0 Votes
3 Answers
27th Sep 2021, 6:26 AM
Gulafsha Syed
Не совсем понимаю что здесь написано reversed = names.sort( { s1, s2 in return s1 > s2 } )
closures
swift
1 Vote
1 Answer
4th Oct 2017, 8:39 PM
Yevhen Morkovin
intersect(s1, s2) where s1 and s2 are lists representing sets, computes and return a list representing the intersection of the t
lists
python
0 Votes
2 Answers
19th Sep 2016, 2:37 PM
Vinh Le
Ask a question
Ask a question
Ask a question
Ask a question
Hot today
I just I just resolved the dictionary problem , the program doesn’t allow me to access to the next lesson
0 Votes
Why sololearn did not allow us to...
0 Votes
[SOLVED] Ballpark Challenge
1 Votes
How to use ‘variables’ in a ‘python’ string
1 Votes
How to get Kotlin certificate here
2 Votes
Whats the problem with my code i try to learn loops but apperently i suck at it lol
0 Votes
Array of Object to Object using reduce()
0 Votes
Who will
0 Votes
HELP. UNFAIR STREAK LOSS
2 Votes
There is an error.
0 Votes