lots of exercises in java... from https://github.com/exercism/java
Kyle Pu 5162a81ccd
Update version
6 年之前
..
.meta Update version 6 年之前
src isogram: update test suite (#1162) 6 年之前
README.md Adjust exercise README formatting; drop help link 7 年之前
build.gradle Format build.gradle files 7 年之前

README.md

Isogram

Determine if a word or phrase is an isogram.

An isogram (also known as a "nonpattern word") is a word or phrase without a repeating letter, however spaces and hyphens are allowed to appear multiple times.

Examples of isograms:

  • lumberjacks
  • background
  • downstream
  • six-year-old

The word isograms, however, is not an isogram, because the s repeats.

Java Tips

If you find that testWorksWithGermanLetters fails even though you think you've implemented it correctly, this could be because of the JVM encoding. Try setting the JAVA_TOOL_OPTIONS environment variable to -Dfile.encoding=UTF8 to fix this.

Running the tests

You can run all the tests for an exercise by entering

$ gradle test

in your terminal.

Source

Wikipedia https://en.wikipedia.org/wiki/Isogram

Submitting Incomplete Solutions

It's possible to submit an incomplete solution so you can see how others have completed the exercise.