Results 1 to 3 of 3
  1. #1
    T2ml is offline Member
    Join Date
    Nov 2008
    Posts
    2
    Rep Power
    0

    Default newbie facing java errors

    Hi everyone;

    I am new to java and I have to write a program that prints business cards like this one:

    BMJ**************************BMJ
    *--------------------------------------*
    *-----------Bob Martin John------------*
    *--------------------------------------*
    BMJ**************************BMJ

    note: the character - is actually a white space
    Last edited by T2ml; 12-17-2008 at 07:09 PM.

  2. #2
    racerxadam is offline Member
    Join Date
    Jul 2008
    Posts
    68
    Rep Power
    0

    Default

    Post the entire content of the error message

  3. #3
    T2ml is offline Member
    Join Date
    Nov 2008
    Posts
    2
    Rep Power
    0

    Default

    This is the error i get:

    Java Code:
    Enter Name: 
    Bob Martin John
    How many cards would you like? 
    Exception in thread "main" java.util.InputMismatchException
            at java.util.Scanner.throwFor(Scanner.java:840)
            at java.util.Scanner.next(Scanner.java:1461)
            at java.util.Scanner.nextInt(Scanner.java:2091)
            at java.util.Scanner.nextInt(Scanner.java:2050)
            at CardInteraction.getNumberFromUser(CardInteraction.java:53)
            at CardInteraction.run(CardInteraction.java:30)
            at MainCard.main(MainCard.java:15)
    Java Result: 1

Similar Threads

  1. HelpNeeded!!!Facing Problems in a Project
    By goodwillwins in forum AWT / Swing
    Replies: 2
    Last Post: 08-08-2008, 07:44 PM
  2. I'm a Java web dev newbie - where to start?
    By hapax in forum New To Java
    Replies: 2
    Last Post: 08-01-2008, 07:34 PM
  3. 'm a newbie of java
    By ilysony in forum Introductions
    Replies: 7
    Last Post: 07-21-2008, 04:54 AM
  4. Java Errors! Please help!
    By TearsOfTheMoon in forum New To Java
    Replies: 2
    Last Post: 06-10-2008, 10:00 AM
  5. Help, java newbie
    By baltimore in forum New To Java
    Replies: 1
    Last Post: 08-07-2007, 01:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •