Comments (1)
import java.util.*;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;
import java.io.FileWriter;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;
public class Permutation {
public static void main(String[] args) throws IOException
{
FileWriter csvWriter = new FileWriter("E:/Java Programs/abc.csv");
System.out.println("The Object was succesfully written to a file");
System.out.println("Enter The Device Type");
Scanner sc=new Scanner(System.in);
String str = sc.next();
int n = str.length();
csvWriter.append("Device type");
csvWriter.append(",");
csvWriter.append("Device ID Type");
csvWriter.append(",");
csvWriter.append("Multiple SIM Status ");
csvWriter.append(",");
csvWriter.append("S/N of Device");
csvWriter.append(",");
csvWriter.append("IMEI/ESN/MEID");
csvWriter.append(",");
csvWriter.append("Device Launch Date");
csvWriter.append(",");
csvWriter.append("Device Status");
csvWriter.append(",");
for (int i=1;i<=12;i++)
{
csvWriter.write(i+ " \n");
csvWriter.append("HandHeld");
csvWriter.append(",");
}
csvWriter.append("\n");
int i;
int index = 2;
for(i=2;i<=5;i++)
{
csvWriter.write(index+ " \n");
csvWriter.append("IMEI");
csvWriter.append(",");
}
csvWriter.append(",");
for(i=5;i<=8;i++)
{
csvWriter.write(i+ " \n");
csvWriter.append("MEID");
csvWriter.append(",");
}
for(i=8;i<=11;i++)
{
csvWriter.write(i+ " \n");
csvWriter.append("ESN");
csvWriter.append(",");
}
/* Random rand = new Random();
long accumlator = 1+rand.nextInt(9);
for(int i=0;i<=16;i++)
{
accumlator*= 10L;
accumlator+= rand.nextInt(10);
csvWriter.append(accumlator+"");
csvWriter.append(",");
}
*/
csvWriter.flush();
csvWriter.close();
}
}
from full-stack-with-angular-and-spring-boot.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from full-stack-with-angular-and-spring-boot.