"Automation _ Continuous Integration" ___java___list

Source: Internet
Author: User
Tags stub

One, the code is as follows
Package Www.wujianbotwo;import java.util.*;p ublic class Demo07 {public static void main (string[] args) {//TODO Auto-gener Ated method Stublist mylist= new List ();}}

Package Www.wujianbotwo;import java.util.*;p ublic class Demo07 {public static void main (string[] args) {//TODO Auto-gener Ated method Stub//list mylist= new List (); String[] names= {"Woniuxy", "admin", "Qiang"};object name= "Woniuxy"; object age= 40;object demo=  new Demo07 (); object [] objs= {"Name", 123.45, True, Demo};//list mylist= new List ();D emo07 demo07= (Demo07) new Object ();}}

Package Www.wujianbotwo;import java.util.*;p ublic class Demo07 {public static void main (string[] args) {//TODO Auto-gener Ated method Stub//list mylist= new List (); String[] names= {"Woniuxy", "admin", "Qiang"};object name= "Woniuxy"; Object age= 40;object demo= new Demo07 (); object[] Ob js= {"Name", +, 123.45, True, demo}; list<object> mylist= new arraylist<object> (); list<string> list= new arraylist<string> ();//demo07 demo07= (Demo07) new Object (); List.add ("AAA"); List.add ("Wujianbo"); List.add ("Wudongmei"); List.add ("wujiamin"); for (int i=0; i<list.size (); i++) { System.out.println (List.get (i)); List.remove ("Wujianbo");//delete the element in the string array list for (int i=0; i<list.size (); i++) {System.out.println (List.get (i));} List.remove (0);//delete the 1th element in the string array list for (int i=0; i<list.size (); i++) {System.out.println (List.get (i));} List.set (1, "Wujianbo");//Change the 1th element in a list array for (int i=0; i<list.size (); i++) {System.out.println (List.get (i));} System.out.println (List.indexof ("Wujianbo"));//Output list in the array of WuThe subscript in the array where the Jianbo element is located}} 

"Automation _ Continuous Integration" ___java___list

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.