Skip to content

RiceDope/Rice-Utilities

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rice-Utilities

Collection of Java scripts that can be used when developing

How to use

In order to use these scripts place them in the same directory as the script you are currently developing. If you are compiling to a .class file to run make sure you compile the script containing the function you wish to use as well.

javac Utilities.java

Basic things but would've helped me when I started

Utilites.java

This is one of the scripts containing some general utilities that can be unrelated

getClipboard()

// create the utilities object
Utilities utils = new Utilities();
// get the clipboard
String currentClipboard = utils.getClipboard();
// will output whatever was in the clipboard
System.out.println(currentClipboard);

setClipboard("string")

// create the utilities object
Utilities utils = new Utilities();
// set the users clipboard to whatever you want
String currentClipboard = utils.setClipboard("Hello, World!");

Binary.java

This is another script containing some utilities that are based on binary

toBinary("Integer")

// create the binary object
Binary binary = new Binary();
// convert the number 5 and print it as binary 0101
String inBinary = binary.toBinary(5);

--Rhys--

About

Collection of Java scripts that can be used when developing

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages