Seen some of your videos.. There are other TH-camr who explained these concepts But Must say this - The way you explain ,is extraordinary, it just get typed into memory ( human Lol) and never get erased
Hi Naveen, Your videos are amazing and worth watching. It gives more confidence to viewers and helps a lot to attend any interviews and apply this concept in real projects. Your framework videos are just WAW! and your way of breaking and explaining the concepts is beautiful. My best wishes to you.
I wrote little different logic by using strip function in Python and it worked. #Swap StringsPython a = "hello" b = "world" print(a,b) a = a+b difflength= len(a) - len(b) b = a[0:(difflength)] a = a.strip(b) print(a,b)
one more String a= "akash" String b= "Gaurav" System.out.println("The new value of a will be " + b.Substring(0) ); System.out.println("The new value of b will be " + a.Substring(0) );
Why css selector is faster than xpath , if it is fast why most of the automation engieers are preferred to write mostly custom xpath in place of custom css selectors
Seen some of your videos.. There are other TH-camr who explained these concepts But Must say this - The way you explain ,is extraordinary, it just get typed into memory ( human Lol) and never get erased
one more:
s1=s1+s2;
s2=s1.replace(s2, "");
s1=s1.replace(s2, "");
Hi Naveen,
Your videos are amazing and worth watching. It gives more confidence to viewers and helps a lot to attend any interviews and apply this concept in real projects. Your framework videos are just WAW! and your way of breaking and explaining the concepts is beautiful. My best wishes to you.
How many “thank you “ is enough for your efforts? Lol thank you from my deep heart
I wrote little different logic by using strip function in Python and it worked.
#Swap StringsPython
a = "hello"
b = "world"
print(a,b)
a = a+b
difflength= len(a) - len(b)
b = a[0:(difflength)]
a = a.strip(b)
print(a,b)
Thank you Naveen for your efforts.
Solution of above using replace function
String s1 = "Hello";
String s2 = "World";
// Using replace
s1 = s1.concat(s2);
s2 = s1.replace(s2, "");
s1 = s1.replace(s2, "");
System.out.println(s1 +" | "+s2);
this will not work when s1 = "HelloWorld" and s2 = "World"
we can use replaceFirst instead of replace
Nice edge case ❤
More interview java videos will be useful.your approach is very easy to understand.
helpful tutorial, thank you, keep it up 👍👍👍👍
Amazing explanation, thank you Naveen
Hi Neveen,
Thank you for your time. All videos are very useful.
Thank you Naveen ,it's really helpful
one more
String a= "akash"
String b= "Gaurav"
System.out.println("The new value of a will be " + b.Substring(0) );
System.out.println("The new value of b will be " + a.Substring(0) );
Can you please explain a program which is checking the drop down string values are in alphabetical order?
Thanks
Thank u
Why css selector is faster than xpath , if it is fast why most of the automation engieers are preferred to write mostly custom xpath in place of custom css selectors
Sunil Kumar Reddy Mallela css is faster but using css selector we cannot navigate forward or backward inside Dom.So xpath is used in this case
This is one of the most confusing explanation from Naveen at a = a.substring(b.length());. Didn't explain clearly. So disliking the video. Sorry
One More Way ;-)
String a = "Hello";
String b = "World";
System.out.println("A: "+a);
System.out.println("B: "+b);
a = a+b;
b=a.substring(0, 5);
a=a.substring(5, 10);
System.out.println("A after swapped from Hello to: "+a);
System.out.println("B after swapped from World to: "+b);
This solution will work only if both strings is length 5 , Naveen s solution works for any string length
It's not Scalable