About 25,100,000 results
Open links in new tab
  1. How to add a string to a string [] array? There's no .Add function

    Feb 13, 2012 · I'd like to convert the FI.Name to a string and then add it to my array. How can I do this? You can't add items to an array, since it has fixed length. What you're looking for is a …

  2. String Arrays in Java - GeeksforGeeks

    Nov 25, 2024 · In this article, we will learn the concepts of String Arrays in Java including declaration, initialization, iteration, searching, sorting, and converting a String Array to a single …

  3. add string to String array - W3docs

    To add a string to a string array in Java, you can use the Arrays.copyOf() method to create a new array that is one element larger than the original array, and then use a loop to copy the …

  4. Java String Array- Tutorial With Code Examples

    Apr 1, 2025 · This tutorial on Java String Array explains how to declare, initialize & create String Arrays in Java and conversions that we can carry out on String Array.

  5. String Array in Java - CodeGym

    May 10, 2023 · If you’ve got an array of strings and need to add a new string to the end of your array, use the Arrays.copyOf method. This method creates a new array with one extra …

  6. How to add value in string array Java? - Namso gen

    Apr 18, 2024 · By following a few simple steps, you can easily add a value to a string array and manipulate it to suit your desired needs. In this article, we will discuss the steps involved in …

  7. How to Add Items to an Array in PowerShell (5 Simple Methods)

    May 2, 2025 · Learn 5 efficient ways to add items to arrays in PowerShell. Includes performance tips and real-world examples for both beginners and experienced scripters.

  8. How to Use and Manipulate Arrays in Java - Squash

    Sep 2, 2023 · To add elements to a string array, you need to assign values to individual elements or use a loop to assign values to multiple elements. To add elements to a string array by …

  9. java - add string to String array - Stack Overflow

    Dec 31, 2012 · int i = theArray.length; . int n = ++i; . String[] newArray = new String[n]; . for(int cnt=0;cnt<theArray.length;cnt++) newArray[cnt] = theArray[cnt]; . return newArray; . or The …

  10. How to Create and Manipulate Java String Arrays

    Oct 26, 2023 · In Java, you can create and use a string array by declaring an array and initializing it with string values, String[] stringArray = new String[]{"stringA", "stringB"};. You can then …