Homework, Year 2

These are some problems to keep your Java programming fresh.

1. Write a java method that can check if a number is prime or not.
Be sure to test your method in main!

2. Write a program that takes in an input looking like this :
"{a:1, b:1513, c:1003, f:151}"
And can conver that JSON to a HashMap of String keys
and int values.
This one will not be easy. You can write this program however you
want, but please test your code with multiple inputs.

click here
That video is a decent reference for working with sttrings to
solve problem #2.

Copy and paste your code into an email.