Java Program To Remove White Spaces From Given String | Ashok IT

preview_player
Показать описание
#RemoveWhiteSpaces #StringsCodingChallenges #ashokit

** For Online Training ► Call: +91-6301921083

Subscribe to our channel and hit the bell 🔔🔔🔔 icon to get video updates.

💡 Visit Our Website

💡 About Ashok IT :

Ashok IT is the No.1 quality training institute in India for the candidates who want to build their future in Information Technology. We are into online training, class room training, corporate training and one to one training with more passion and dedication. Ashok IT aims in providing best quality realtime oriented trainings on C, C++, Java, Spring , Spring REST, Spring Cloud, Microservices, Python, DJango, .Net, Angular, React JS, Salesforce, , Testing, Android, Docker, Kubernates, Manual Testing, Selenium and Digital Marketing.

-----------------------------------------------------------------------------------

💡 Our Online Training Features

🎈 Training with Real-time Working Professionals
🎈 Industry Matching use cases
🎈 Live Coding
🎈 Real-time Environment
🎈 Class Notes
🎈 Doubts Clarifications in Each Session

-----------------------------------------------------------------------------------

💡 Contact details:

☎ WhatsApp Number: +91-6301921083

Remove Whitespaces from String in Java
Write a java program to all white spaces in String
White spaces removing in Java
How to remove white spaces in Stirng
Java Program to remove all white spaces in String using Java
Java Strings Programs
Strings Interview Questions
remove whitespace from string in java
Рекомендации по теме
Комментарии
Автор

public static void main(String[] args){
String s="j a va s ta r";
String res="";
for(int i=0;i<s.length();i++){
char ch=s.charAt(i);
if(ch!=' '){
res=res+ch;
}
}
System.out.println(res);
}

ramanaboinaharish
Автор

Can I use this ??
String s=" J a v a"
System.out.print(s.replace(" ", ""));

Baba.Baidyanath.Dham.deoghar
Автор

what can we do if we want to get "java star"

shbzbrs
Автор

Sir what's the name of using //s%d ?? Please reply

fero___
Автор

how about this one?

Enter name: Ashok IT

Reverse without space: ITkohsA

xxredgie