Skip to content

verdoxOP/EzScan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

to use this library you have to compile the code, after cloning CD into the filepath in powershell and paste this javac src/com/VerdoxOP/EzScan/EzScan.java, this will compile the java file to a java class, now you need to compile it into a jar to actually use it do that by pasting this in your powershell terminal jar cf MyTools.jar -C src com/verdoxop/Tools/EzScan.class this will make a mytools.jar file, now to use this you must reference it in your IDE, like this If using IntelliJ:

Go to File > Project Structure > Modules > Dependencies.

Click + > JARs or Directories and select MyTools.jar.

If using VS Code / Terminal:

You must reference the jar when compiling: javac -cp MyTools.jar Main.java

now to import the package just do import com.verdoxop.tools.EzScan at the top of your file now you can use it; example on how to use:

import com.VerdoxOP.EzScan.EzScan;

public class Main { public static void main(String[] args) {

    // 1. Get a String (Handles IOExceptions automatically)
    String name = EzScan.input("What is your username? ");
    
    // 2. Get an Integer (Safe Loop - Prevents crashes on text input)
    // If user types "abc", it prints an error and asks again automatically.
    int level = EzScan.getInt("Enter level (numbers only): ");
    
    System.out.println("Player " + name + " is level " + level);
}

⚠️ Troubleshooting

"Cannot resolve symbol EzScan"

Did you add the import line? import com.verdoxop.Tools.EzScan;

Did you add MyTools.jar to your project dependencies/classpath?

"Package does not exist"

Ensure your folder structure during Step 1 matches the package name inside the file exactly (com.verdoxop.EzScan).

About

my own library to replace standard java scanner because i hate the syntax and this package reduces boilerplate and improves readability

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages