+ 2

Pig Latin problem in java

How to make a changes for more than one word

5th Dec 2021, 7:34 AM
Aravind P CSE TCET
2 Antworten
+ 3
import java.util.*; public class Program { public static void main(String[] args) { Scanner in = new Scanner(System.in); String[] ws = in.nextLine().split(" "); for (String w:ws) System.out.print(w.substring(1) + w.substring(0,1) + "ay "); } } // Good Luck
5th Dec 2021, 9:02 AM
SoloProg
SoloProg - avatar
+ 2
Thanks 😊 bro
5th Dec 2021, 12:13 PM
Aravind P CSE TCET