Remove Special Characters from a String using Regular Expression in Java #shorts #javainterview

preview_player
Показать описание
Remove Special Characters from a String using Regular Expression in Java #shorts #javainterview
Рекомендации по теме
Комментарии
Автор

please post real time interview questions such as map stream Java 8 programming interview questions

madhanvb
Автор

How to add a empty space in particular index in string using regex

thejaswaroopan
Автор

1) String s =

Write a logic to have only one '-' between words in above string (without using any temporary string)

o/p should be :
-My-Name-Is-XYZ-X-Y

2) Move all negative elements in an array to beginning (without using a temporary array, and preserve the order of -ve and +ve elements in the array)

int a[] = {1, 2, 3, 0, -1, 4, 5, -2, -3, 0, -7};
o/p should be
-1, -2, -3, -7, 1, 2, 3, 0, 4, 5, 0]

2nd one is really interesting

sriramkukkadapu
Автор

please dont upload as a short unable to see

venkatvivek
join shbcf.ru