Joined: 09 Mar 2009 Posts: 283
Gender:
Location: Multan
Posted: May 05, 2009 Topic Views : 237 Post subject: Mobile Phone Card Generation Program in java
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:
/*
* 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();
}
Joined: 09 Mar 2009 Posts: 283
Gender:
Location: Multan
Posted: May 06, 2009 Post subject:
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.........