URI:
   DIR Return Create A Forum - Home
       ---------------------------------------------------------
       Make It Possible
  HTML https://makeitpossible.createaforum.com
       ---------------------------------------------------------
       *****************************************************
   DIR Return to: General Discussion
       *****************************************************
       #Post#: 2--------------------------------------------------
       Java Program
   DIR By: pradumnu199
       Date: April 14, 2014, 1:31 am
       ---------------------------------------------------------
       how to create a java program to check for piglatin string
       #Post#: 3--------------------------------------------------
       Re: Java Program
   DIR By: abhinavmpandey08
       Date: April 14, 2014, 1:37 am
       ---------------------------------------------------------
       It's very simple.
       import java.util.*;
       class Piglatin
       {
       static void main()
       {
       Scanner sc=new Scanner(System.in);
       System.out.println("Enter a word");
       String s= sc.next();
       s=s.toUpperCase();
       int l=s.length();
       String a="",b="",c;
       for(int i=0;i<l;i++)
       {
       char ch=s.charAt(i);
       if(ch=='A'||ch=='E'||ch=='I'||ch=='O'||ch=='U')
       {
       a=s.substring(i);
       break;
       }
       else b=b+ch;
       }
       System.out.println(a+"   "+b);
       c=a+b+"AY";
       System.out.println("Piglatin String: "+c);
       }
       }
       *****************************************************
       Page 1 of 1