Home Update array element in arraylist of arrays
Reply: 0

Update array element in arraylist of arrays

user9252
1#
user9252 Published in September 20, 2018, 10:23 pm

I need to update an element of array inside arraylist of arrays

ArrayList<Object[]> IT = new ArrayList<Object[]>();
String[] arr1 = {"1" , "2" , "3"};    
String[] arr2 = {"4" , "5" , "6"}; 
String[] arr3 = {"7" , "8" , "9"};
IT.add(arr1); 
IT.add(arr2);
IT.add(arr3);

I need to update elements of these internal arrays.

share|improve this question
  • 2
    Good for you. And your question is? – Mena Feb 12 at 16:41
  • 1
    English probably isn't his first language. I think we can get the gist of what he's asking. – Andy Feb 12 at 16:44
  • 1
    Which element? And what is the problem? And why are you using Object[] instead of String[] in your List? – Elliott Frisch Feb 12 at 16:44
  • 2
    I need the procedure to follow to update any element, this is a sample code just written to clarify my question. – Moh.Ali Feb 12 at 16:49
  • What have you tried so far to solve this problem for yourself? Edit your question to give us a Minimal, Complete, and Verifiable example, to illustrate the problems you've encountered, and we'll be better able to help you. – Rob Wilkins Feb 12 at 16:56

2 Answers 2

active oldest votes
up vote 0 down vote accepted
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.336078 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO