Skip to content

The code in the package encodedXander can read an INPUT file an then use a RULE HASHMAP where you can say convert vowels aeiou TO AEIOU or reverse them or even convert a comma to a pipe character. You can add, remove or print all the rules. There are some restrictions in what rules you can add. Though it can read and write using Binary files the…

Notifications You must be signed in to change notification settings

FreeFries/UseCase-HashMap-For-Switching-Vowels-in-one-pass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

crawley_code - Use Case of a HashMap keys to quickly switch the values of a character if there is match.

The code in the package encodedXander can read an INPUT file an then use a RULE HASHMAP where you can say convert vowels aeiou TO AEIOU or reverse them or even convert a comma to a pipe character. You can add, remove or print all the rules. There are some restrictions in what rules you can add. Though it can read and write using Binary files the HASHMAP for your rules assumes STRINGS. OK, there are some USE CASE limitations. You have an option of an OUTPUT file as well.


To run this example use the main method in ReadWriteBinary Class

It creates the rules for uppercasing or lower casing the vowels in the input file file1IN.csv which is assumed to be on a Windows path of c:\temp It creates the converted output file in the same folder

You can switch other characters as well using this mini pattern - like commas with the pipe symbol

Example output file is also included in this repository

About

The code in the package encodedXander can read an INPUT file an then use a RULE HASHMAP where you can say convert vowels aeiou TO AEIOU or reverse them or even convert a comma to a pipe character. You can add, remove or print all the rules. There are some restrictions in what rules you can add. Though it can read and write using Binary files the…

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages