Completed

Java Exercise

Write a command line program in java that parses the following JSON file from stdin or from command line argument:

Your program may assume that the file resides locally on the same filesystem as the program itself, or it may retrieve it via web request if you prefer.

The JSON file represents a view hierarchy in a user interface. You can think of it as a tree of nodes, just like elements in an HTML DOM. Like in HTML, Views have certain attributes that are selectable, ala CSS selectors.

Once parsed, your program should wait for user input on stdin. Each line the user enters on stdin should be treated as a selector, and your program should print the matching views, as JSON, to stdout.

The program must support simple selectors for the following view attributes:

1. class - The view class name, e.g. "StackView"

2. classNames - CSS class names, e.g. ".container"

3. identifier - The view identifier, e.g. "#videoMode"

You can effectively ignore all other attributes in the JSON model for the purpose of selector matching.

Compound selectors (e.g. " View#identifier") are not required, but you’ll certainly impress us if you support them. Selector chains (e.g. " StackView .container") are not required, but again, you’ll certainly impress us if you support those, too.

There are 26 views in the given JSON file with the class of Input. Ensure the correctness of your program by asserting that it finds all 26 Inputs given the selector "Input".

Skills: CSS, HTML, Java, Javascript

See more: java exercises with answers, java programming exercises book, java exercises pdf, java beginner practice problems, java practice projects, java programming exercises for experienced, java coding practice for beginners, java programming assignments, java exercise bid class, simple java exercise, java rs232 write demo, give project java exercise, small java exercise solution asterisks, java read write text files gui, java exercise project, java jsp write csv file, write program read numbers find print, simple java exercise questions, find three nouns for each verb then write a present simple sentences using the appropriate

About the Employer:
( 0 reviews ) Beverly, United States

Project ID: #17871017

Awarded to:

sandaruwan9495

Hi there. I am really good in programming and I have experience about three year in javascript. And I have experience in doing assignment as part time job. So I think this job is fit to me. Thank you

$20 USD in 1 day
(0 Reviews)
0.0

10 freelancers are bidding on average $38 for this job

urmate

Hi There I've excellent programming and development skills and knowledge. I can provide an efficient, perfect, well documented development of your Programming and Computer project according to 100% accuracy and re More

$100 USD in 1 day
(297 Reviews)
6.7
langlangFan

Hello I have rich experience with application from stdln I have ever done similar project with you I am good at JAVA, PHP, JSP Frankly to say, I have 10+ years of software experience. The most important thing to More

$25 USD in 1 day
(18 Reviews)
5.7
Programmer59

Hello Sir I am interested in this task also I am available to do form now can We discuss the task? I am waiting your response thank you

$25 USD in 1 day
(18 Reviews)
5.2
PATechnology

Interested. .

$50 USD in 2 days
(44 Reviews)
5.0
kahilH

Hello I am a highly skilled java developper with a large experience with JSON files and web selectors i suggest to discuss more details over chat Regards

$50 USD in 1 day
(21 Reviews)
4.7
omoretech

Hi I have great experience in JSON parsing using Java programming, recently done multiple tasks related to parsing, I reviewed your file and I think I can do this work. I done many programs using stdIn API in java an More

$29 USD in 2 days
(13 Reviews)
4.2
anish424

Hi, I have 8 yrs of java exp and its a straightforward task so I can surely do your job. All my previous projects had 5/5 ratings You will not be disappointed with quality. Atleast have a chat before awarding to More

$24 USD in 2 days
(31 Reviews)
4.6
$25 USD in 1 day
(26 Reviews)
3.9
LeDinh

Hello, I'm an IT engineer with a master degree. I've got 3 years of professional experience as a developer. I'm proficient in Java, I can do your work. Contact me if you are interested. Regards, Kim

$30 USD in 3 days
(4 Reviews)
2.1