java - convery string into array with brackets -


मेरे पास निम्न स्ट्रिंग है

  [http://images.com/1। Jpg, http://images.com/2.jpg, http://images.com/3.jpg]   

मैं एक स्ट्रिंग सरणी के अंदर इस सरणी की सामग्री को संग्रहित करना चाहता हूँ या स्ट्रिंग की सरणी सूची।

मैंने .split विधि का उपयोग करने की कोशिश की, लेकिन यह मुख्य रूप से असफल हो जाता है क्योंकि स्ट्रिंग को शुरुआत में कोष्ठक भी शामिल है।

  स्ट्रिंग [] splittedString = theString.substring (1, theString.length () - 1) .split (",")   

विभाजन विधि में अल्पविराम के बाद स्थान पर ध्यान दें।

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

c# - Add Image in a stackpanel based on textbox input -

java - Reaching JTextField in a DocumentListener -