Array target sum triplet

Main.java:5: error: class Arrays_Target_Sum_Triplets is public, should be declared in a file named Arrays_Target_Sum_Triplets.java
public class Arrays_Target_Sum_Triplets {
^
1 error

how this error should be resolved

@tiwari15vishnu_025f0691ba9beb0e Send me the full code which you’re trying to use in the question. Meanwhile, you should name your class “Main” and then try because in online compiler your class name should always be Main.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.