I am currently working on my backend part for my React web application. I have created my project as
maven and from there created the web folder with ReactJS. So I have my backend part in src and frontend in the web folder.
I have some challenges with my backend part which is in the programming language
java. I am in the process of developing it so that it cooperates with my frontend.
My Backend (Order.java) looks like this:
I'm working on programming my backend api to display my data like this:
I have tried and created an array called orderedItems with various values. But I just can't get it to make sense. I've tried to do this, but it doesn't work.
The code above gives me error, I've no idea why it should.
Can someone help me converting the format to java code?
Trying to get my backend api to work. I just need to make so my backend prints the data as the format shown above.