ArrayMaker-Java is a simple utility program that creates an array of sequential numbers and writes them to a specified file. This tool can be useful for developers who need to generate large arrays for testing or other purposes.
- Prompts the user for the file name and the number of elements.
- Generates an array of sequential numbers.
- Writes the array to a specified file, with each number on a new line.
- Java or Java Development Kit (JDK) installed on your machine.
- A text editor or IDE (e.g., VS Code, IntelliJ IDEA).
- Clone the repository:
git clone https://github.com/hassanraza2000/ArrayMaker-Java.git
- Navigate to the project directory:
cd ArrayMaker-Java
-
Compile the program with:
javac ArrayMaker.java
-
Run the program with CLI:
java ArrayMaker <file-name> <number-of-elements>
java ArrayMaker output.txt 10The program will create a file named output.txt with the following content:
1
2
3
4
5
6
7
8
9
10
Contributions are welcome! Please fork the repository and create a pull request with your changes.
This project is licensed under the MIT License - see the LICENSE file for details.
- Inspired by the need for simple array generation tools.
- Thanks to all contributors and users for their support.