Code not compiling. Not passing "respond to ping" stage

I keep getting this error " can’t find symbol OutputStream" even though I have correct import at the top. Attaching the code and error screenshot. Due to this the test keeps failing

Hey @afroz-al, could you upload your code to GitHub and share the link? It will be much easier to debug if I can run it directly.

@andy1li Sure. Here is the github link

@andy1li Were you able to debug this ?

@afroz-al The error message says “cannot find symbol: OutputStream”, and the code in your GitHub repo indeed doesn’t have import java.io.OutputStream;:

If you’ve already added the import locally, it’s possible that the change wasn’t committed or pushed correctly.

Let me know if you need help verifying that!

@andy1li Thanks for investigating. Import Change exist locally and I didn’t see any issue while publishing the change. All the commits have been pushed. How do I proceed from here?

Looks like the change hasn’t been committed yet:

Could you share the following?

  1. The exact commands you used to commit and push.

  2. A screenshot of the Git tab in your editor.

Not sure why the commit didn;t happen. I made the change again and this time import change got pushed. Thanks for looking into it. Closing this topic :slight_smile:

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.