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 5 of 5

Thread: is there a jumptoLine(); function or is there a way to implement it.

  1. #1
    Junior Member
    Join Date
    Jul 2013
    Posts
    24
    Thanks
    3
    Thanked 1 Time in 1 Post

    Default is there a jumptoLine(); function or is there a way to implement it.

    It would be realy useful to just type in jumptoLine(12); and it goes to that line. Now is there something to do so?


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

    Default Re: is there a jumptoLine(); function or is there a way to implement it.

    Is this a question about how to use an IDE?
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Jul 2013
    Posts
    24
    Thanks
    3
    Thanked 1 Time in 1 Post

    Default Re: is there a jumptoLine(); function or is there a way to implement it.

    maybe... May I ask what's an IDE?

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

    Default Re: is there a jumptoLine(); function or is there a way to implement it.

    A big fancy editor for your source program.
    If you don't understand my answer, don't ignore it, ask a question.

  5. #5
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: is there a jumptoLine(); function or is there a way to implement it.

    I think he's asking if there's a Java statement similar to the GOTO statement in BASIC.

    Gugubo, if that is your question, the answer is "No." The functionality you describe was handy for one programmer who could remember the reason for using the GOTO "crutch," but liberal use of GOTOs make a program confusing and unmaintainable by anyone else.

    Java does have a "continue to label" that you can find explained at that link.

Similar Threads

  1. Not sure how to implement a bullet system?
    By joshnerd557 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: January 14th, 2013, 10:00 AM
  2. Help to implement new function in nCode Image Resizer
    By focusoft in forum Other Programming Languages
    Replies: 6
    Last Post: October 23rd, 2012, 10:43 PM
  3. How would you implement this?
    By JohnQ in forum Object Oriented Programming
    Replies: 0
    Last Post: April 24th, 2012, 06:55 PM
  4. How do I implement a networking framework?
    By Niator in forum Java Networking
    Replies: 7
    Last Post: December 24th, 2011, 07:22 PM
  5. Implement dragging a circle
    By jolly in forum AWT / Java Swing
    Replies: 0
    Last Post: August 19th, 2009, 02:48 PM