Problem1
public class Problem1 {
public static void main(String[] args)
{
String s1 = "It is a long established fact that a reader will"
+ " be distracted by the readable content of a page when "
+ "looking at its layout. The point of using Lorem Ipsum is"
+ " that it has a more-or-less normal distribution of letters, "
+ "as opposed to using 'Content here, content here', making it "
+ "look like readable English. Many desktop publishing packages"
+ " and web page editors now use Lorem Ipsum as their default model "
+ "text, and a search for 'lorem ipsum' will uncover many web sites"
+ " still in their infancy. Various versions have evolved over the"
+ " years, sometimes by accident, sometimes on purpose (injected humour"
+ " and the like).";
char[] a1=s1.toCharArray();
// String s2 = "is";
for (int i = 0; i <a1.length; i++)
{
if (a1[i]=='i' && a1[i+1]=='s')
{
i+=2;
}
System.out.print(a1[i]);
}
}
}