intro/StringManipulations

From ggc

Jump to: navigation, search

01 package intro;
02 
03 
04 /**
05  * All about my application.
06  @author My Name Here
07  */
08 public class StringManipulations
09 {
10   public static void main(String[] args)
11   {
12     String phrase="Hello Java WIDE";
13     String phrase2="Goodbye and good luck Intro Programming";
14     System.out.println(phrase.substring(610));
15     System.out.println(phrase.charAt(1));
16     System.out.println(phrase.length());
17     System.out.println(phrase.indexOf("WIDE"));
18     System.out.println(phrase.indexOf("C++"));
19     int start=phrase2.indexOf("Intro");
20     String result=phrase.substring(phrase.indexOf("Hello")6)+phrase2.substring(start, phrase2.length());
21     System.out.println(result);
22   }
23 }


Download/View intro/StringManipulations.java





Views
Personal tools
Add to 
del.icio.usAdd to 
diggAdd to 
FacebookAdd to 
favoritesAdd to 
GoogleAdd to 
MySpaceAdd to 
PrintAdd to 
SlashdotAdd to 
StumbleUponAdd to 
Twitter