Remove all the white spaces from the String | String Exercise-1 | Programming Using Java | Infosys

preview_player
Показать описание
Infosys springboard assignment answers

Problem Statement
Complete the removeWhiteSpaces() method given in the Tester class.

Remove all the white spaces from the string passed to the method and return the modified string.

Test the functionalities using the main() method of the Tester class.

Check Comment section for alternate solution.

(Important- If you have any queries or errors in output, plz don't hesitate to ask for help in comment section. Keep learning and keep growing👍)

#springboard #infosys #java #corejava #string #playlist
Рекомендации по теме
Комментарии
Автор

In case if it is showing error then try this code: (paste this code in removeWhiteSpaces method)
String newString="";
for(int i=0;i<str.length();i++){
if(str.charAt(i)!=' ') newString+=str.charAt(i);
}
return newString;

ErShreyas
Автор

In my laptop it is neither executing the program nor it is verifying or submitting my assignment..🤷what should i do?🤷

aditisrivastava
Автор

It is showing "some error occurred ", While verifying

navaneethreddypasike
Автор

bro can you upload java control structure assignments

santhoshbobbili
Автор

Hii bro can you please upload assessment in spring board

rohitharige
Автор

Pls send the association and aggression programs

gourisankarpanda
visit shbcf.ru