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

 

jebbert@volusia.k12.fl.us > palidromeNumX1
prev  |  next  |  chance

Write a RECURSIVE method that returns a string that represents a palindromic number made from 'num'. The way the palindrome is constructed is by first writing the digits of 'num' backwards and then forwards. Look at the test data for examples. As preconditions you may assume that 'num' is a positive integer much less than the maximum possible integer (for a Java int).


palidromeNumX1(1) → "11"
palidromeNumX1(572) → "275572"
palidromeNumX1(8241) → "14288241"

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

public String palidromeNumX1(int num) { }

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

Difficulty: 310

Copyright Nick Parlante 2017 - privacy