Mobile Phone Card Generation Program in java

Operating System Tips, Tricks and Hack which include Windows 10 and others, CentOS, Linux, MAC OS, iOS
Post Reply
User avatar
Asif Javed
Fun Addict
Fun Addict
Posts: 517
Joined: Mar 09, 2009
Location: Multan

Mobile Phone Card Generation Program in java

Post by Asif Javed » May 05, 2009 Views: 2172

well i make very simple program that Generate Mobile Phone Card Numbers
its very simple to share you let you try your luck....

best of luck if you dont want that how to run this program then free ask

Code: Select all

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package javaapplication1;

import javax.swing.JOptionPane;

/**
 *
 * @author asif.javed
 */


public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        
        String totalnumber = JOptionPane.showInputDialog("How Many Card Number You Want");
        int tnumber = Integer.parseInt(totalnumber);
        String numb = JOptionPane.showInputDialog("Enter Number of Card Digit");
        int cardnumb = Integer.parseInt(numb);
        
        for(int i = 1; i <= tnumber; i++)
        {
            for(int j = 1; j <= cardnumb; j++ )
            {
                int ii = (int) (Math.random()*10);
                System.out.print(ii+" ");
            }
            System.out.println();
        }


    }

}

User avatar
chandoo
Ultimate Contributor
Ultimate Contributor
Posts: 19019
Joined: Sep 08, 2007
Location: Lahore
Contact:

Post by chandoo » May 05, 2009

I don't think it works.

User avatar
Asif Javed
Fun Addict
Fun Addict
Posts: 517
Joined: Mar 09, 2009
Location: Multan

Post by Asif Javed » May 06, 2009

well chando i know its not work properly but it can generate randomly but the cell phone compnies are using special algo to do this its up to your luck.........

User avatar
upcomingachates
Sweet Member
Sweet Member
Posts: 91
Joined: Mar 27, 2009
Location: Islamabad, Pakistan

Post by upcomingachates » May 11, 2009

Good Topic

preetycasey
Fan of Fun Stuff
Fan of Fun Stuff
Posts: 301
Joined: Aug 06, 2009

Post by preetycasey » Aug 13, 2009

i like it

User avatar
Asif Javed
Fun Addict
Fun Addict
Posts: 517
Joined: Mar 09, 2009
Location: Multan

Post by Asif Javed » Jan 21, 2010

preetycasey -> I like it sy zaida bol lo mere bhai ...

Post Reply

Return to “Operating System Tricks”