User Profile

Collapse

Profile Sidebar

Collapse
Whisperthecat
Whisperthecat
Last Activity: Oct 22 '12, 11:25 PM
Joined: Oct 21 '12
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Whisperthecat
    replied to Not sure
    in Java
    were are only allowed to use 6 digits

    Were are only allowed to use 6 digits. I even tried different amount of numbers...
    See more | Go to post

    Leave a comment:


  • Whisperthecat
    started a topic Not sure
    in Java

    Not sure

    when asked fro ticket number it says the last number is 7 and theremainder is 4 so the result is false. Can somebody please explain. Thank you


    Code:
    import javax.swing.JOptionPane; 
    public class TicketNumber
    {
    public static void main(String[] args)
    {
    final int CHECKDIGIT = 7;
    String ticketString;
    int tickNum, newTickNum, lastDigit, remainder;
    boolean result;
    ticketString = JOptionPane.showInputDialog(null,
    ...
    See more | Go to post
    Last edited by Rabbit; Oct 21 '12, 09:07 PM. Reason: Please use code tags when posting code.
No activity results to display
Show More
Working...