java String manipulation
Need a small c# or vb or java program for achieving this.

String s1 = “((The/All) the Sun(s) rises in the east and set in the west. 1) This is true. 2) This is false. (What is the frame of reference?)) ”

Requirement
All open bracket must have a closing bracket ex. “(“ should have “)”
The bullet points should be converted from “1)” to “(1)”

Notes
How to know 1) is a bullet point and not a normal close bracket?

java String manipulation
===

Need a small c# or vb or java program for achieving this.

String s1 = “((The/All) the Sun(s) rises in the east and set in the west. 1) This is true. 2) This is false. (What is the frame of reference?)) ”

Requirement
All open bracket must have a closing bracket ex. “(“ should have “)”
The bullet points should be converted from “1)” to “(1)”

Notes
How to know 1) is a bullet point and not a normal close bracket?
