Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Explanation of second argument in the following line of code

  1. #1
    Junior Member
    Join Date
    Sep 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Explanation of second argument in the following line of code

    Can someone explain, or point me in the direction of documentation for, the second argument in this instantiation of the object i. I looked all over but can't really find anything that explains it. I don't even know what to search for..

    Intent i = new Intent(context, ToggleService.class);


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Explanation of second argument in the following line of code

    second argument in this instantiation of the object
    The place to start would be the API doc for the Intent class.
    What does it say about the arguments to its constructors?

Similar Threads

  1. Command Line Argument - URGENT!
    By Rads23 in forum What's Wrong With My Code?
    Replies: 11
    Last Post: August 18th, 2011, 08:58 AM
  2. enum, value of: Why is this code line structured the way it is?
    By SPACE MONKEY in forum Java Theory & Questions
    Replies: 5
    Last Post: March 28th, 2011, 09:15 AM
  3. Help with a line of my code.
    By Miical94 in forum Object Oriented Programming
    Replies: 1
    Last Post: March 7th, 2011, 11:00 AM
  4. Need explanation of the code
    By aappee in forum Object Oriented Programming
    Replies: 3
    Last Post: November 1st, 2010, 05:56 AM
  5. [SOLVED] Command Line Argument Help
    By EmSaint in forum Loops & Control Statements
    Replies: 2
    Last Post: January 28th, 2010, 10:55 AM