id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

byngcompsci@gmail.com Strings > toPigLatin
prev  |  next  |  chance

toPigLatin(String s) - this method encodes the String s in pig latin. In pig latin, any word longer than 2 letters is encoded by putting the first letter at the back and adding "ay". For example: car --> arcay starcraft --> tarcraftsay I love starcraft --> I ovelay tarcraftsay


toPigLatin("car") → "arcay"
toPigLatin("starcraft") → "tarcraftsay"
toPigLatin("I love starcraft") → "I ovelay tarcraftsay"

...Save, Compile, Run (ctrl-enter)

public String toPigLatin(String s) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Copyright Nick Parlante 2017 - privacy