How to convert an array to arraylist?

0 votes

How to convert an array to arraylist?

Jun 26, 2018 in RPA by Atul
• 5,470 points
9 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes
import java.util.*;

public class ArrToArrList {
     public static void main(String[] args) {

	  /* Array Declaration and initialization*/
	  String names[]={"George", "Sam", "Mac", "Alia"};

	  /*Array to ArrayList conversion*/
	  ArrList<String> names= new ArrList<String>(Arrays.asList(citynames));

	  /*Adding new elements to the converted List*/
	  names.add("Smit");
	  names.add("Peter");

	  /*Final ArrayList content display using for*/
	  for (String str: names)
	  {
		System.out.println(str);
       	  }
      }
}
answered Jun 26, 2018 by wrecker
• 3,090 points

Related Questions In RPA

0 votes
1 answer

How to convert an array to arraylist?

import java.util.*; public class ArrToArrList { ...READ MORE

answered Jul 6, 2018 in RPA by Vardy
• 2,280 points
39 views
0 votes
2 answers

How to find the sum of 2 columns of an excel and display it in a 3rd column using UIPATH?

1. First use the excel application scope ...READ MORE

answered 3 days ago in RPA by Venkat
• 260 points
1,085 views
0 votes
1 answer

How to select an item in UiPath that starts with a string?

Just use a wildcard in selector. Given ...READ MORE

answered Jun 29, 2018 in RPA by wrecker
• 3,090 points
249 views
0 votes
1 answer

How to delete some specific sheets from an existing excel file using vb.net code?

You can create a output of Excel ...READ MORE

answered Jul 27, 2018 in RPA by Atul
• 5,470 points
202 views
0 votes
1 answer

How to wait for an image to appear on a certain application?

Here are the steps that i performed: 1- ...READ MORE

answered Jul 27, 2018 in RPA by Atul
• 5,470 points
32 views
0 votes
1 answer

BluePrism: how to invoke javascript function when clicking on an HTML element?

Use a application modeller to spy the ...READ MORE

answered Oct 10, 2018 in RPA by Priyaj
• 56,100 points
928 views
0 votes
1 answer

In BluePrism, How to select an option using Key or Click events?

I'd suggest making this one and every ...READ MORE

answered Oct 26, 2018 in RPA by Priyaj
• 56,100 points
1,348 views
0 votes
1 answer

How to send an attachment with an email using UiPath?

Hey Rashid, if you wish to send ...READ MORE

answered Mar 11 in RPA by Anvi
• 5,680 points
237 views
0 votes
1 answer

How to select an item in UiPath that starts with a string

use a wildcard in selector. make sure that ...READ MORE

answered May 21, 2018 in RPA by wrecker
• 3,090 points
717 views
0 votes
1 answer

How to select an item in UiPath that starts with a string

Just use a wildcard in selector. Given ...READ MORE

answered May 28, 2018 in RPA by wrecker
• 3,090 points
84 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.