public class training {
    public static void abc(){
        list<string> cities= new list<string>();
        cities.add('Delhi');
        cities.add(0,'Mumbai');
        cities.add('Kolkata');
        System.debug('cities'+ cities);
        list<string> fruits= new list<string>();
        fruits.add('Apple');
        fruits.add('Pears');
        fruits.add('Orange');
        fruits.addAll(cities);
        System.debug(fruits);
        //fruits.clear();
        System.debug(fruits);
        system.debug(cities.contains('Kolkata'));
        system.debug(fruits.remove(2));
        system.debug(cities.size());
           
    }

    public static void operators(){
        integer a= 55, b= 39, c;
        c=  a+b;
        system.debug(c);
        Decimal h= 7.8,j=6, i;
        i= h*j;
        system.debug(i);
        Decimal o= 1.9,u= 4.4, r;
        r= o-u;
        System.debug(r);
        Decimal s= 9.0,t=3,n;
        n= s/t;
        System.debug(n);
        integer w= 78,q= 7, d;
        d= w/q;
        System.debug(d);
        
              
    }
    public static void method3(){
        set <integer> num= new set<integer>();
        num.add(10);
        num.add(15);
        num.add(20);
        num.add(25);
        num.add(26);
        system.debug(num);
        system.debug(num.contains(20));
        set<string> cities= new set<string>();
        cities.add('Delhi');
        cities.add('Mumbai');
        cities.add('Kolkata');
        cities.add('Bhubaneswar');
        system.debug(cities);
        list<string> cities1= new list<string>();
        cities1.add('Guwahati');
        cities1.add('Hyderabad');
        system.debug(cities1);
        cities.addAll(cities1);
        system.debug(cities);
        //cities.clear();
        set <string> cities2= cities.clone();
        system.debug(cities2); 
        system.debug(cities.size());
    }
    
    public static void method4(){
        map <integer,string> flowers= new map<integer,string>();
        flowers.put(1,'Lotus');
        flowers.put(2,'Lily');
        flowers.put(3,'Hibiscus');
        flowers.put(4,'Rose');
        flowers.put(5,'Jasmine');
        system.debug(flowers);
        //flowers.clear();
        system.debug(flowers);
        system.debug(flowers.containskey(9));
        map <integer,string> colors= new map<integer,string>();
        colors.put(6,'Blue');
        colors.put(7,'Red');
        colors.put(8,'Yellow');
        colors.put(9,'White');
        flowers.putall(colors);
        system.debug(flowers);
        map <integer,string> flowers2= new map<integer,string>();
        colors.remove(7);
        system.debug(colors);
        system.debug(colors.size());
        system.debug(flowers.size());
           
    }
}