User Profile

Collapse

Profile Sidebar

Collapse
rawringbuny
rawringbuny
Last Activity: Feb 15 '11, 05:44 PM
Joined: Jan 24 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • rawringbuny
    started a topic number formatting
    in Java

    number formatting

    i have to display a transcript using JOptionPane or using the GUI text field.
    but i only know how to print it out using System.out.prin tf

    i have to print the yyyymmddnnn (where nnn is the serial no.)

    Code:
    int serialNo = 000;
    
          Calendar cal = Calendar.getInstance();
    
          date = cal.get(Calendar.DATE);
          month = cal.get(Calendar.MONTH) + 1;
          year
    ...
    See more | Go to post

  • rawringbuny
    started a topic How to increment serial number?
    in Java

    How to increment serial number?

    hi! i was doing wondering if there's a way to print out & increment 3-digit-serial no.?
    i was planning to print out an invoice.
    i want the starting of the invoice to be in this format YYYYMMDDNNN (where YYYY is the year, MM is month, DD is date & NNN is serial no (e.g: 001, 002, 003....) )

    i've did the Year, month and date already. but when i want to print out the serial no. , it shows "1, 2 ..." instead...
    See more | Go to post
No activity results to display
Show More
Working...