It may be just co incidental that you are taking
sugar cane juice and feeling better but I would seriously suggest you that you please consult a physician who would examine you and would diagnose it better. It may be anything as you have not mentioned any other symptoms associated with stomach pain.
Next Steps
consult a physician tp get ot diagnosed and accordingly treated