Skip to content
Open

PR1 #19

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions src/main/java/io/zipcoder/Problem1.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,33 @@
package io.zipcoder;
import java.util.*;


public class Problem1 {
private void initializeMap() {
HashMap<Character, Character> map = new HashMap<Character, Character>();
map.put('f', '7');
map.put('s', '$');
map.put('1', '!');
map.put('a', '@');
}

//{ 'f' : '7', 's':'$', '1':'!', 'a':'@'}





static String replaceChars(String source, String from, String to)
{
String problem1Input = "The Farmer went to the store to get 1 dollar’s worth of fertilizer";

StringBuilder dest = new StringBuilder();
for ( int i = 0; i < problem1Input.length(); i++ )
{
for (int j =0; j)
}
return dest.toString();
}


}