Purchase Solution

JAVA Programming code

Not what you're looking for?

Ask Custom Question

Write a program in Java to process a 3-digit palindromic number. A palindromic number is any number which has the same value when read from either direction. The way to solve the problem (by hand) is as follows:

Object Basics and Simple Data Objects
- Write down any 3-digit number.
- Reverse the digits in the original number and write them under the original number.
- Add the two numbers.
- If the number is a palindrome, stop.
- If the number is not a palindrome, reverse the digits of the sum and write them under the sum.
- Add these two numbers.
- Repeat this process until you get a palindrome.
- The number of times that you had to add in order to reach the palindrome is the palindrome order of your original number.

Purchase this Solution

Solution Summary

JAVA programming code help is provided.

Solution Preview

Clue 1: Consider the number as a string to check if it is a plaindrome.

Clue 2: You may use the equals and substring methods of the String class. ...

Purchase this Solution


Free BrainMass Quizzes
C++ Operators

This quiz tests a student's knowledge about C++ operators.

Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.

Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.

Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.

C# variables and classes

This quiz contains questions about C# classes and variables.