hurtlocker's Introduction
##WELCOME TO THE HURT LOCKER By this time you should have been introduced to Java Strings, Exceptions, Unit Testing, and Regex. #You will need all of these today! In this project you will find a file in the resource folder called RawData.txt. It was supposed to be a grocery list formated in JSON, but after a huge defeat this weekend in a game called Munchkin, Tariq your fearless yet petty leader decided to come reformat it in his own Object Notation. JerkSON... you are welcome. ##JerkSON Format Just like Json , JerkSON is supposed to be a Key Value Pair data store. In Json Key and Value are seperated as such (Key:Value) where the colon is the seperator. In JerkSON Key and Value could be seperated by using a any of the following (:, @, ^, *, %) and there is no guarntee that there isn't another hidden symbol seperator. (There could be another one, or maybe there isn't , you tell me)... lol In Json Key and Value pairs are seperated by a ',' in JerkSON its '##' ##Your Task Its your job to build a JerkSON data parser, that is able to read in the raw data , and output a string formated list that resembles (outputFormat.txt) There are some things to look out for.... If you haven't figured it out by now Tariq has many wonderful qualities, spelling isn't one of them, so Words may not be spelled correctly. You need to decipher what Tariq was trying to spell using pattern matching. for example: In the shopping list Tariq has Cookies, but he could spell like Cookies, c00Kies, Co0kies and so on. YOU ARE NOT ALLOWED to use any Java based string manipulation!!!!!!!!!!!! You must use regex to detect the patterns and match them. Oh one more thing.... Tariq is kind of petty... so you can blame STELLA and JOCELYN for this. Its not guranteed that every Key will have a Value, and every Value will have a pair. For instance: you may see something like this Name:Milk;Price:3.23;type:;expiration:1/24/2016## Notice how TYPE has a key but no Value.... if you try and parse this into an object your program could crash. You will need to handle your exceptions! I also expect you to report on how many exceptions you saw while parsing the data. GOOD LUCK ZIPCODERS!!!! My the Odds be ever in your favor!!!!
hurtlocker's People
Forkers
zihaocastine vncrowe matthewbelongia hoxtah sjamison22 thabib413 nurudeendroid eckens18 samhudgens mikailaakeredolu mjcarroll93 bcason0 m4d4pples nojuannobody duevorn-harris zacarias93 joshkelley19 cablair1218 jecrawley ehitchings techmonster kjmccann1228 jleczner sujatharavikumar kjacked wshuler23 christw2 emilygoulet dlindza zdwasserman codejalisa a-tafari nazneutron cnobles815 kevinjmc ggenya132 jasquier anruisoul johnantoniocollins ryan-gross1993 andyvkim andres-holland toonces1980 pbattin fantsyrdr89 alcollazo rjackson88 captastic greyno kanumurishilpa mohammad-alfatih honeil wmattern0 mawolfe87 tolaniibikunle code-rhino jhum0407 ykk7 tintcolor catjunior wongandrewp banuelosm11 dzygmundfelt toprahmin pacalyps23 sarahweisser jmhaas yoocode bmullzz dprahl moarant aaronclong faethflex vidya-chandrasekhar vll88 spegram91 kca83 rikeroleg basgolfer jwurd vvmk aash-bjw kanekopetski mikegray31 wesjones15 kendrang jeanvalentin51 mairabotelho michkin32 schoenbeckzipcode k-law21 ryanmil kievina davidtrom julevans93 sandicus chung305 brianlp nebnooc amendoza20Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.