0% found this document useful (0 votes)
7 views1 page

Java JSON Calculations and Data Structure Solutions

The document outlines three programming problems requiring solutions in Java or related frameworks. The first problem involves parsing a JSON input to compute and print values based on specified formulas for custom fields. The second and third problems require high-level explanations for displaying a file folder structure and ensuring data isolation in a multi-tenant application, respectively.

Uploaded by

Vaibhav Avadhani
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views1 page

Java JSON Calculations and Data Structure Solutions

The document outlines three programming problems requiring solutions in Java or related frameworks. The first problem involves parsing a JSON input to compute and print values based on specified formulas for custom fields. The second and third problems require high-level explanations for displaying a file folder structure and ensuring data isolation in a multi-tenant application, respectively.

Uploaded by

Vaibhav Avadhani
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

APPLICANT NAME: DATE:

Please use the Java language or any Java related framework for the problems
described below.

1. Problem Description:
Write a programme that will take the below JSON as input and print the value
of each calculation field. The input can have a 0-N number of calculations.

[{"calculateField":"customFloat1",
"formula": "10+15"
},
{"calculateField":"customFloat2",
"formula": "customFloat1*10"
},
{"calculateField":"customFloat3",
"formula": "customFloat2-18"
},
{"calculateField":"customFloat4",
"formula": "customFloat3+customFloat2"
}
]

In this input json, the calculateField from customFloat1-customFloat4 are field


names. The value will be calculated based on the formula available in the
JSON.

The output would be fieldname and value.


Ex: FieldName: customFloat1
Value: 25

2. Problem Description:

In a file folder tree structure, how can you show 0-N level files and folders in
the frontend?
There is no need to write any code. Explain high-level data structure and how
you can achieve that.

3. Problem Description:

In a multi-tenant application, how can you ensure someone does not see
another's data? Provide a high-level solution to achieve this

You might also like