Tags » Kesari

Using JAVA Iterator

I’m trying delete strings which have even index numbers in this ArrayList, using “Iterator”.remove.

    import java.util.*;
import static java.lang.System.out;

class MAIN
{
    public static void main(String args[])
    {
        ArrayList<String> al = new ArrayList<String>();
        Iterator i = al.iterator();
        int len;
        Scanner sc = new Scanner(System.in);
        out.printf("Size:");
        len = sc.nextInt();

        while( len!=0 )
        {
            al.add( sc.next() );
            len -= 1;
        }

        Object o;
        for( len = 0 ; len < al.size() ; len +=1)
        {
            out.println(al);
            if( len%2==0 )
            {
                o = i.next();
                out.println(o);
                i.remove();
                i.next();
            }
        }


        return;
    }

}
… 24 more words
Recent Questions - Stack Overflow

When I walked for Kesari Queen

It feels nice and warm when one gets to walk the ramp in front of thousands of people and poise with attitude. Same feeling is what I had when I walked the ramp for Kesari Queen. 256 more words

Fashion

apt-get remove libstdc++-4.8-doc | 101MB will be freed?

Here’s the output of apt-get remove libstdc++-4.8-doc on my system.

$ sudo apt-get remove libstdc++-4.8-doc 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  libstdc++-4.8-doc
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. 189 more words

Rava kesari , how to make rava kesari


Rava kesari is the most easiest sweet of Indian sweet recipes.The only difficult part is to make them without any lumps.Such an easy recipe,takes just few minutes to make them but tastes really good. 107 more words

BREAKFAST