{ 1, 2, 3, 4 {1, 5, 6, 7}, 5, 6, 3, 4} | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

{ 1, 2, 3, 4 {1, 5, 6, 7}, 5, 6, 3, 4}

how can remove the curly bracket within array and sort the elment without using collection method ......use logic for this

29th Nov 2016, 2:48 PM
Madhuri Choudhari
Madhuri Choudhari - avatar
3 Answers
+ 3
you can parse the string(remove curly bracket or save only numbers to a unit array) with loop and then sort your array
29th Nov 2016, 4:15 PM
Saeed
Saeed - avatar
+ 2
is it string and you want cast to integer array?
1st Dec 2016, 7:11 AM
Saeed
Saeed - avatar
+ 1
integer type objects
29th Nov 2016, 4:37 PM
Madhuri Choudhari
Madhuri Choudhari - avatar