Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I'm stuck and I don't understand how to implement what codegrade is asking for :( I feel like I tried everything and I can't find

I'm stuck and I don't understand how to implement what codegrade is asking for :( I feel like I tried everything and I can't find anything in my coursework.

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedHi, could you help me understand what codegrade wants me to fix and how? I'm currently working on this code, so my current code is not the one submitted, but i'm strugguling with Main myApp = new Main(); and the arraylist.

image text in transcribed

4 Prepare Task1 - Test storeChocolateObjects method Run javac \$FIXTURES/Task1_Test2.java -d se.hkr.task1 and check for successful completion. 2. import se.hkr.task1. ChocolatePiece; 3. .............. 4. - bad source file: ./se/hkr/taskl/Chocolatepiece.java 5. ...file does not contain class se.hkr.task1. Chocolatepiece 6. ... Please remove or "make sure it appears in the correct subdirectory of the sourcepath. 7. /.e532e5ed6e734c6ea2193f16817977a2/.90d0ceb7b4b64bdca 13825 ada7820328/Task1_Test2.java:2: error: cannot access Main 8. import-se.hkr.task1.Main; 9. 10. - bad source file: . /se/hkr/taskl/Main. java 11. ...file does not contain-class se.hkr.task1.Main 12. ... Please remove or make sure it appears in the correct subdirectory of the sourcepath. 13. /.e532e5ed6e734c6ea2193f16817977a2/.90d0ceb7b4b64bdca.13825ada7820328/Task1_Test2.java: 18: error: cannot find aymbol 14. "... Main mypp"= new Main(); 15. +nn 16. "symbol: cclass Main 17. "location: class - Task1_Test2 18. /.e532e5ed6e734c6ea2193f16817977a2/.90d0ceb7b4b64bdcal3825ada7820328/Taskl_Test2.java: 18: error: cannot-find symbol 19. .....Main myApp = new Main( ); 20. ..................A 21. *symbol:" class Main 22. - location: class Task1_Tet2 23. /.e532e5ed6e734c6eaz193116817977a2/.90d0ceb7b4b64bdca 13825ada7820328/Task1_Test2+java19error: cannot find-symbol 24. ....... ChocolatePiece[ ] chocolate = myApp.storeChocolateobjects(); 25. 26. "symbol" class Chocolatepiece 27. - location: class-Taskl_Test 2 28. 5-errors 2 Prepare Task1 - Test ChocolatePiece Class Run javac \$FIXTURES/Task1_Test1.java -d se.hkr.task1 and check for successful completion. 1. /.e532e5ed6e734c6ea2193f16817977a2/.90d0ceb7b4b64bdca13825ada7820328/Task1_Test1.java:1: error: cannot-access Chocolatepiece 2. import se.hkr.taskl. ChocolatePiece; 3.,. 4. ' bad-source file: ./ge/hkr/task1/chocolatepiece.java 5. ....file does not contain class se.hkr.task1. Chocolatepiece 6. +. Please remove or make sure it appears in the correct subdirectory of the sourcepath. 7. /+e532e5ed6e734c6ea2193f16817977a2/.90d0ceb7b4b64bdca13825ada7820328/Task1_Test1.java:2:-error:-cannot-access-Main 8. Lmport-se.hkr.taskl.Maint 9. 10. + bad source file: ./se/hkr/task1/Main. java 11. ...file does not contain class'se.hkr t task 1. Main 12. ... please remove or make sure it appears - in the correct subdirectory of the sourcepath. 13. /.e532esed6e734c6ea2193f16817977a2/.90doceb7b4b64bdca13825ada7820328/Task1_Test1.java:17: error: cannot-find gymbol 14. . . ... ChocolatePiece cp = new ChocolatePiece ( "Star", 7); 17. - locationt-class Task1_Test1 18. /.e532esed6e734c6ea2193f16817977a2/.90d0ceb7b4b64bdca13825ada7820328/Task1_Test1.java:17: error: cannot find gymbol 19. ....... ChocolatePiece cp "= new ChocolatePiece ("Star", 7); 20. 21. . symbolt..class ChocolatePiece 22. - locationt-class-Task1_Test1 23. 4-errors oublic class ChocolatePiece \{ private String shape; 2 usages private int weight; 3 usages private boolean eaten; ChocolatePiece cp; 3usages public ChocolatePiece(String shape, int weight ) this. shape = shape; this. weight = weight; eaten = false; \} public string getshape() { return shape; } public int getWeight() { return weight; } 1 usage public boolean isEaten() { return eaten; } 1 usage public void setEaten(boolean eaten) \{ then; 6 Prepare Task1 - Test openCalendar method Run javac \$FIXTURES/Task1_Test3. java - d se.hkr.task1 and check for successful completion. 1. /.e532e5ed6e734c6ea2193f16817977a2/.90d0ceb7b4b64bdca13825ada7820328/Task1_Tegt3.java:1:-error: cannot accesa Chocolatepiece 2. import-se.hkr.task1. ChocolatePiece; 3. 4. ' bad source file: ./se/hkr/task1/chocolatepiece.java 5. '...file does not contain class 'se.hkr.task1. ChocolatePiece 6. ....please remove or make sure it appears in the correct subdirectory of the sourcepath. 7. /.e532e5ed6e734c6ea2193f16817977a2/.90d0ceb7b4b64bdca13825ada7820328/Task1_Test3.java: 2 t error: cannot access Main 8. import se.hkr.taskl.Main; 9. . 10. ' bad-source files .//se/hkr/task1/Main.java 11. '.. file does not contain class se.hkr.taskl.Main 12. ...Please remove or make sure it appears in the correct subdirectory of the gourcepath. 13. /.e532e5ed6e734c6ea219316817977a2/.90d0ceb7b4b64bdca13825ada7820328/Task1_Test3.java: 22:-errort cannot-11nd symbol 14. + Main myApp = new Main(); 15. 16. "symbol:"class-Main 17. -location: class-Task1_Test 3 18. /.e532e5ed6e734c6ea2193f16817977a2/.90d0ceb7b4b64bdca13825ada7820328/Task1_Test3.java:22: errort cannot find:symbol 19. ...... Main 'myApp ' ' new Main( ); 21. "symbol: class Main 22. - location: class Task1_Test3 23. /.e532e5ed6e734c6ea2193f16817977a2/.90d0ceb7b4b64bdca13825ada7820328/Task1_Test 3.java:24: error: cannot find symbol 24. ChocolatePiece []cp= new Chocolatepiece [24]; 25. ......^ 26. Aymbol: c. class Chocolatepiece 27. - locationt-class-Task1_Test3 28. /.e532e5ed6e734c6ea2193f16817977a2/.90d0ceb7b4b64bdca13825ada7820328/Task1_Test3.java:24: error: cannot find symbol 29. , ChocolatePiece []cp new Chocolatepiece[ 24]; 30. 31. 'symbol:'-class ChocolatePiece 32. - location: class-Task1_Test3 33. /.e532e5ed6e734c6ea2193f16817977a2/.90d0ceb7b4b64bdca13825ada7820328/Task1_Test3.java:27: error : cannot find symbol 34. cp [i]= new ChocolatePiece ( "star , 7)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Peter Rob, Carlos Coronel

3rd Edition

0760049041, 978-0760049044

More Books

Students also viewed these Databases questions

Question

Discuss the key ambient conditions and their effects on customers.

Answered: 1 week ago

Question

Be familiar with the integrative servicescape model.

Answered: 1 week ago

Question

Understand the role of corporate design in communications.

Answered: 1 week ago