Stream API

In java stream api is used to fetch something and then filter the result according to the requiremnt.

It is a generic approach which is used on Generic class.
The Stream api is used to fetch the stream, the filter api to filter the required information  ,the map api is used to map the function which are filtered and the  forEach  api to display the filtered mapped output.

given an example :-


package com.test;

import java.util.ArrayList;
import java.util.List;

class productPrice {
    int price;

    public productPrice(int price) {
        super();
        this.price = price;
    }

}

public class TestStream {

    public static void main(String[] args) {
        List<productPrice> abc = new ArrayList<productPrice>();
        abc.add(new productPrice(4));
        abc.add(new productPrice(9));
        abc.add(new productPrice(8));

        abc.stream().filter(k -> k.price > 4).map(r -> r.price)

                .forEach(System.out::println);
        ;

    }

}

************************** OUTPUT ****************************************

9
8

Why CAA get huge attention..

India is a country of politics and Reliance Jio lies on top of it
and it is worth living in such type of country.
 
Now, coming to CAA why these fucking morons are shouting about CAA.
CAA is a pre  planned agenda of  BJP party to create polarisation in the country and he sucedded in his attempts.

Reason we all  know that BJP could not fulfill his promises and to diverse the mind of the people he has to something to engage the  people.

These are a part of story and the other part is that CAA(Citizen Amendment Act) is one of the toughest and boldest decision towards India Development.

 
why other communities are opposing it because they have sympathy for their community who are refuges. This is called religious emotions. Moreover, the other community were silent on the act of government like "Triple talaq", "Aydhoya" and "article 370,35A" so they have not a chance to protest against the government so this they are using their all force to create pressure on the government.

From my view, it is good to do protest but breaking the properties of innocent people under the name of protest should not be accepted. Moreover, the police who breaks the properties of common people should also be punished.

Now, coming to the title ...

why CAA got huge attention???

After CAA there were a huge protest all over the country the major outrage was broken at jamiya and  jnu college of Delhi.When the student came out in large numbers and started  with the silent protest. The protest suddenly took a violent turn and it moved to vandalizing the public properties like buses and throwing stones on police officers. In return, police enter the campus and beat those miscreants. Now, this became a hot issue in the news channel. All channel telecast this in different perspectives. Thus, a rise of violent protest under the name of silent protest rose all across the country. Large group of Muslim religion came out in street and started vandalizing public properties.
Though the mob include other communities too who may be so called by rumors about bill.


In the course of this event, the illiterate people have made it a hub to seek attention of media.
The student are now angry with everything  now even if something is not happening in the country then they will raise an irrelevant issue and  start protesting. They know if someone wanna get attention in this country then he/she has to go offtrack. This is how leaders are born.

Now, if they are not getting attention they start rejecting the regular classes and also not letting the professors to enter the premises. These are the things which attract media and display the student activities on screen.













At end, i would like to conclude with a message that India is not a such a good country where we would live and waste our life good moments for the sake of  cheap politics or viewpoint of people.
There are other develop countries in the world where we can spend our time and give our self a good living. It is as simple as it is "If you want to live in this country ... tolerate what is going on or leave this country" and nothing is more beautiful than leaving your country for the sake of good life.