How do I add data to the string [] or remove the line from the string []?
excerpt from class public class images (public final static string [] imageUrls = new string [] {"http://192.168.1.1/pictures/card/AA001a.jpg", "Http: //192.168 1.1 / Photos / Cards / AA001b.jpg"};}
< P> From:
An array is a container object that contains a fixed number of values for a single type. The length of the array occurs when the array is created. Is fixed.
Instead you use one or the other Some examples of code:
public static zero main (string [] args) {// izize a string: string path = "http: //192.168.1.1/pictures/card/AA001b.jpg "; // Array list: Arreelist & lt; string & gt; S = new ArrayList & lt; string & gt; (); // Add some value: s. Add ("http://192.168.1.1/pictures/card/AA001a.jpg"); s.add ("http://192.168.1.1/pictures/card/AA001b.jpg"); // Remove the first element: S.remove (0); // Remove the second element: s.remove (path); }
Comments
Post a Comment