Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

My code suite, including homemade build and run tools and testing library, for practicing the Grokking the Coding Interview algo patterns in Java.

NotificationsYou must be signed in to change notification settings

CunningDJ/grokJava

Repository files navigation

This is my code suite, including homemade build and run tools and testing library, for practicing theGrokking the Coding Interview algo patterns in Java.

Instructions

Creating/Adding Java Classes & Tests

Adding to an Existing Java Class & Tests

Add methods to an existing .java file and tests in the class'smain() method (using the Tester class for test utilities - see example main() methods in existing files)

Creating a new Java Class & Tests -gtool new

To create a new .java file/class, rungtool new [classname], e.g.gtool new GrokkingTopSort, which will create the corresponding .java file (e.g. GrokkingTopSort.java) with initial boilerplate code at the top level.

gtool - Home Made Clean, Build & Run Tool

  • The command line toolgtool can handle allclean,build, andrun operations, using these as the respective command argument (e.g.gtool clean).
  • Run the tool without an argument to see the available commands. Run with commands to perform the desired operations.

BE AWARE

  • gtool build will automaticallyclean before building.
  • gtool run will neither build nor clean automatically. To get all of these in one, use thegtool br command (see below)

gtool br - Easyclean,build &run All-In-One

Thebr command argument will clean, build, and run the given class all in one (you don't need to include the package name for the class).

Example:gtool br GrokkingFastSlowPointers will clean and build all .java files and then run the main method for theGrokkingFastSlowPointers class.

gtool new - Easy Java Class Creator

Feed a class name to this method (e.g.gtool new GrokkingTopSort) to conveniently create a respective .java class file (e.g.GrokkingTopSort.java) with the appropriate package name (set withDEFAULT_PACKAGE_NAME) and boilerplate class code already added.

Verbose

If for some reason you want a verbose printout of the stages being performed bygtool, simply change theinitializedVERBOSE value to1. Maybe I'll add a-v flag but I don't feel like it right now.

About

My code suite, including homemade build and run tools and testing library, for practicing the Grokking the Coding Interview algo patterns in Java.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp