- For individual users
- Instant access to solutions
- Ask your tech questions
- Start your 30-day Free Trial
Main Topics
Browse All TopicsDoes anyone have any feedback on how to write a program that inputs a 5-digit integer from the keyboard and prints if the input number is a palindrome or not.
This is the program I wrote:
import java.util.*;
class Tester22
{
public static void main(String args[])
{
int palindrome number =0;
int n1 = Integer.parseInt(number);
Scanner input = new Scanner(System.in);
System.out.println("Please
int given = input.nextInt();
If(number >="Is a palindrome number");
else
If (number >="Is not a palindrome number");
System.out.println(" number + palindrome");
System.out.println("number
}
}
The compilation left me with this result:'
';' expected')' line 6
')' expected line 10
'else' without 'if' line 12
I have tried everything to make this program compile. I will keep at it! While someone gives me a hand.
Fred
This question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
900+ topic areas (and counting)
It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul.
We love the accolades. We love to be seen as the digital white knight who fixed the server, the computer, the email, and anything else that life depends on.
We love it so much, we sometimes make horrible decisions. Sometimes, we work "FOR FREE."
SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispersed nature of the blog posts that deal with some of these issues. This article will help SCCM OSD newbies with some of these issues.
For our deployments, we always install MDT 2008 on our SCCM server and select Configure ConfigMgr Integration from the MDT area on the start menu. This gives us:
Get full access to the help you need.
30-day free trial. Register in 60 seconds.
Bringing you the latest in technology
| Congressman Proposes Bill to Ban... | 11/28/12 |
| Death to Internet Anonymity: Google... | 11/27/12 |
| TEDx San Luis Obispo | 11/20/12 |
| SharePoint 2010 No-Code Solutions... | 11/19/12 |
| Keeping Your Passwords And Your Win... | 11/15/12 |
| Fun and Games with Hackers: How to... | 11/15/12 |
Listen while you work
Because of our active community of experts, on average new questions receive their first comment in under 30 minutes.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.
Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Business Accounts
Answer for Membership