package StringInJava;
public class StringExample9 {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
String s1 = "Bhanu";
// charAt , it has character return type
System.out.println(s1.charAt(3));
System.out.println(s1.charAt(0));
System.out.println("--------------");
// contains has boolean return type
System.out.println(s1.contains("u"));
System.out.println(s1.contains("Bha"));
System.out.println(s1.contains("pm"));
System.out.println("---------------------");
System.out.println(s1.concat(" pratap"));
System.out.println(s1.concat(" Singh"));
System.out.println("---------------");
String s2 = "Bhanu Pratap singh";
String[] split = s2.split(" ");
System.out.println(split[0]);
System.out.println(split[1]);
System.out.println(split[2]);
String s3 = "Bhanu Pratap singh";
String[] split1 = s3.split("Pratap");
System.out.println(split1[0]);
System.out.println(split1[1]);
//System.out.println(split1[2]);
}
}
public class StringExample9 {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
String s1 = "Bhanu";
// charAt , it has character return type
System.out.println(s1.charAt(3));
System.out.println(s1.charAt(0));
System.out.println("--------------");
// contains has boolean return type
System.out.println(s1.contains("u"));
System.out.println(s1.contains("Bha"));
System.out.println(s1.contains("pm"));
System.out.println("---------------------");
System.out.println(s1.concat(" pratap"));
System.out.println(s1.concat(" Singh"));
System.out.println("---------------");
String s2 = "Bhanu Pratap singh";
String[] split = s2.split(" ");
System.out.println(split[0]);
System.out.println(split[1]);
System.out.println(split[2]);
String s3 = "Bhanu Pratap singh";
String[] split1 = s3.split("Pratap");
System.out.println(split1[0]);
System.out.println(split1[1]);
//System.out.println(split1[2]);
}
}
sir do you have that excel file where you showed all the method with return type in string.it would very helpful if you can provide that file
ReplyDeleteGreat articles, first of all Thanks for writing such lovely Post! Earlier I thought that posts are the only most important thing on any blog. But here a Shout me loud found how important other elements are for your blog.Keep update more posts..
ReplyDeleteMSBI Training in Chennai
Software Testing Training in Chennai
Hi,
ReplyDeleteThanks for sharing the info about CORE JAVA Plz keep sharing on...
Thank you...
https://bhanucorejava.blogspot.in/2017/08/core-java-interview-question-and-answers.html?showComment=1515306828197#c6565127684753166918
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteExisting without the answers to the difficulties you’ve sorted out through this guide is a critical case, as well as the kind which could have badly affected my entire career if I had not discovered your website.
ReplyDeleteDigital Marketing online training
full stack developer training in pune
full stack developer training in annanagar
full stack developer training in tambaram
full stack developer training in velachery
Thanks you for sharing this unique useful information content with us. Really awesome work. keep on blogging
ReplyDeleteData Science Training in Chennai
Data science training in bangalore
Data science online training
Data science training in pune
Data science training in kalyan nagar
I am really impressed with your efforts and really pleased to visit this post.
ReplyDeletepython training in rajajinagar
Python training in btm
Python training in marathahalli
Resources like the one you mentioned here will be very useful to me ! I will post a link to this page on my blog. I am sure my visitors will find that very useful
ReplyDeletejava training in chennai | java training in bangalore
java training in tambaram | java training in velachery
java training in omr | oracle training in chennai
We are a group of volunteers and starting a new initiative in a community. Your blog provided us valuable information to work on.You have done a marvellous job!
ReplyDeleteData Science training in rajaji nagar
Data Science training in chennai
Data Science training in electronic city
Data Science training in USA
Data science training in pune
Data science training in kalyan nagar
At Coepd (Center of Excellence for Professional Development) we practice Object-Oriented Programming concepts and mentor .Net Platform, C#.NET, ADO.NET which helps the attendees to build database-driven Web applications and Web Sites successfully. We also guide the attendees to develop web-based enterprise applications using ASP.NET and Visual Studio which comforts in developing the Web Services using .Net framework in Service-oriented Architecture. The Internship Program Also covers Frontend design technologies HTML, HTML5, CSS, CSS3, XML, Bootstrap, JQuery, Angular JS, and AJAX. Our collaborative ecosystem comprising of Partnerships with Software Companies enables real time software development life cycle experience.
ReplyDeletehttp://www.coepd.com/DotnetTraining.html
From your discussion I have understood that which will be better for me and which is easy to use. Really, I have liked your brilliant discussion. I will comThis is great helping material for every one visitor. You have done a great responsible person. i want to say thanks owner of this blog.
ReplyDeletejava training in chennai
java training in marathahalli | java training in btm layout
When I initially commented, I clicked the “Notify me when new comments are added” checkbox and now each time a comment is added I get several emails with the same comment. Is there any way you can remove people from that service? Thanks.
ReplyDeleteAmazon Web Services Training in OMR , Chennai | Best AWS Training in OMR, Chennai
Amazon Web Services Training in Tambaram, Chennai|Best AWS Training in Tambaram, Chennai
AWS Training in Chennai |Best Amazon Web Services Training in Chennai
The knowledge of technology you have been sharing thorough this post is very much helpful to develop new idea. here by i also want to share this.
ReplyDeleteangularjs-Training in velachery
angularjs Training in bangalore
angularjs Training in bangalore
angularjs Training in btm
angularjs Training in electronic-city
When I initially commented, I clicked the “Notify me when new comments are added” checkbox and now each time a comment is added I get several emails with the same comment. Is there any way you can remove people from that service? Thanks.
ReplyDeleteAWS Interview Questions And Answers
AWS Training in Pune | Best Amazon Web Services Training in Pune
AWS Training in Chennai |Best Amazon Web Services Training in Chennai
AWS Training in Chennai | Best AWS Training in Chennai
Amazon Web Services Training in Pune | Best AWS Training in Pune
I was looking for this certain information for a long time. Thank you and good luck.
ReplyDeleteangularjs-Training in chennai
angularjs Training in chennai
angularjs-Training in tambaram
angularjs-Training in sholinganallur
angularjs-Training in velachery
Great post! I am actually getting ready to across this information, It’s very helpful for this blog.Also great with all of the valuable information you have Keep up the good work you are doing well.
ReplyDeleteJava training in Chennai
Java training in Bangalore
Thanks for the informative article. This is one of the best resources I have found in quite some time. Nicely written and great info. I really cannot thank you enough for sharing.
ReplyDeletebest rpa training in bangalore
rpa training in bangalore | rpa course in bangalore
RPA training in bangalore
rpa training in chennai
rpa online training
This is quite educational arrange. It has famous breeding about what I rarity to vouch. Colossal proverb.
ReplyDeleteThis trumpet is a famous tone to nab to troths. Congratulations on a career well achieved. This arrange is synchronous s informative impolites festivity to pity. I appreciated what you ok extremely here
Selenium training in bangalore
Selenium training in Chennai
Selenium training in Bangalore
Selenium training in Pune
Selenium Online training
Really you have done great job,There are may person searching about that now they will find enough resources by your post
ReplyDeleteAWS training in sholinganallur
AWS training in Tambaram
AWS training in Velachery
Thanks For Sharing your Information The Information Shared Is Very Valuable Please Keep Updating Us Time Just Went On reading the article Data Science Online Training Hadoop Science Online Training AWS Online Training Python Online Training
ReplyDeleteYour very own commitment to getting the message throughout came to be rather powerful and have consistently enabled employees just like me to arrive at their desired goals.
ReplyDeleteWeb Designing Training in Chennai | No.1 Web Designing Course Training in Chennai
SQL Server Training in Chennai | Best No.1 SQL Server Course Training in Chennai
Digital Marketing Training in Chennai | Best Digital Marketing Course Training in Chennai
Great Blog thanks for the post Very useful Information
ReplyDeleteIOT training in cehnnai | IOT training course chennai
Css training in chennai | Css course in chennai
C++ training in chennai | C++ Training course in chennai
It’s great to come across a blog every once in a while that isn’t the same out of date rehashed material. Fantastic read.
ReplyDeleteData science Course Training in Chennai |Best Data Science Training Institute in Chennai
RPA Course Training in Chennai |Best RPA Training Institute in Chennai
AWS Course Training in Chennai |Best AWS Training Institute in Chennai
superb....
ReplyDeleteinplant training in chennai for it
namibia web hosting
norway web hosting
rwanda web hosting
spain hosting
turkey web hosting
venezuela hosting
vietnam shared web hosting
I was looking for this certain information for a long time. Thank you and good luck.
ReplyDeleteAI Training in hyderabad
ReplyDeleteNice article and thanks for sharing with us. Its very informative
Machine Learning Training in Hyderabad