Loading...
Engaged employer
Write a program to reverse a string
Anonymous
String reverse(String s){ int length = s.length()-1 String s1 = "" while (length >= 0){ s1 = s1 + s[length] length-- } return s1 }
forget semicolumns (;), sorry
Push char by char on a stack then concatenate all the pops until the stack is empty.
Stay ahead in opportunities and insider tips by following your dream companies.
Get personalised job recommendations and updates by starting your searches.
Get actionable career advice tailored to you by joining more bowls.
Check out your Company Bowl for anonymous work chats.