filmov
tv
Selenium Real time Interview Questions || Swap two Strings without using temp/third variable

Показать описание
Swap two Strings without using temp/third variable:
Algorithm:
1) Append second string to first string and
store in first string:
a = a + b
2) call the method substring(int beginindex, int endindex)
by passing beginindex as 0 and endindex as,
3) call the method substring(int beginindex) by passing
b string in a
======================================================
=======================================================
Selenium Framework with Page Object Model | E-Commerce Project
=========================================================
Algorithm:
1) Append second string to first string and
store in first string:
a = a + b
2) call the method substring(int beginindex, int endindex)
by passing beginindex as 0 and endindex as,
3) call the method substring(int beginindex) by passing
b string in a
======================================================
=======================================================
Selenium Framework with Page Object Model | E-Commerce Project
=========================================================