Question Details

No question body available.

Tags

java arrays find position element

Answers (5)

March 5, 2026 Score: 6 Rep: 221,169 Quality: Medium Completeness: 40%

Having said that...

Your method returns void. You are trying to return an int. If you want your method to return an int then change its return type to int.

This has exactly nothing to do with VS Code, nor with four out of the five random tags you've added to your question.

March 5, 2026 Score: 2 Rep: 221,169 Quality: Low Completeness: 40%

Relevant code and/or error messages need to be included in your question as text, not as pictures of text. Just linking to screen shots (or, worse, sloppy photographs of a screen) makes it more difficult for people to help you. To learn more about this community and how we can help you, please start with the tour and read ask and its linked resources.

March 5, 2026 Score: 0 Rep: 4,254 Quality: Low Completeness: 60%

Plus, your method should be called linearSearch as method names begin lower case in Java

March 5, 2026 Score: 0 Rep: 45,119 Quality: Low Completeness: 10%

Cell phone pictures are pretty sloppy. In the future, please create screen shots by holding down Alt and pressing PrtScr, then starting Microsoft Paint and holding down Ctrl and pressing V to paste the screen capture there.

March 5, 2026 Score: 0 Rep: 1,210 Quality: Low Completeness: 20%

links to the help center: tour and ask