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: Need help with coding.. I'm a beginner please help asap!

  1. #1
    Junior Member
    Join Date
    Dec 2017
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Need help with coding.. I'm a beginner please help asap!

    I sure hope I put this in the right area... this is my first time using a forum.

    I started coding through a program at our school in AP Computer Science in Java.

    I came across this assignment I'm required to do that I'm hearing has to do with indexOf and substrings and such like that, but I have no clue how to do any of it and I've been stuck on this for the past week and a half now.

    I guess I'll post what I'm supposed to do and maybe someone can point me in the right direction.

    Example for the finished code:

    Enter the first String:
    OneTwoThree
    Enter the pivot String:
    Two
    ThreeTwoOne

    Also....

    Enter the first String:
    The Hare outpaced The Tortoise
    Enter the pivot String:
    outpaced
    The Tortoise outpaced The Hare

    And....

    Enter the first String:
    I think. Therefore I am.
    Enter the pivot String:
    Therefore
    I am. Therefore I think.

    Also....

    Enter the first String:
    Where is my pivot String?
    Enter the pivot String:
    missing
    Error: Pivot String not found.

    I just need some help. I'm getting frusterated at this and I would love it if someone could help me out here...

  2. #2
    Member
    Join Date
    Dec 2013
    Location
    Honolulu
    Posts
    71
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Need help with coding.. I'm a beginner please help asap!

    Yeah. I saw the program too on the internet. You are switching objects within a class. Local variables, class variables, and instant variables. Writing it similar fashion would be good. Try cut and pasting it on the forum. Use the proper
     in here...

    Let's see how it looks.

  3. #3
    Super Moderator pbrockway2's Avatar
    Join Date
    Jan 2012
    Posts
    987
    Thanks
    6
    Thanked 206 Times in 182 Posts

    Default Re: Need help with coding.. I'm a beginner please help asap!

    Break the problems down into small steps.

    The examples you give all start with the computer printing a prompt ("Enter the first String:") and, presumably, reading the response and storing it into a variable. Begin by writing and testing some code to do that.

    It is important that you post code as people here will help you as much as they can, but won't do your homework for you. It is not important that your code works correctly, or even compile without error! Nobody's code works correctly the first time. Compiler errors (and dealing with them) is part of the process.

    Post what you come up with. If it doesn't function as you expect or intend say what you expected as well as what actually happened. If the code does not compile copy, paste and post the exact compiler output.

  4. #4
    Junior Member
    Join Date
    Feb 2018
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Need help with coding.. I'm a beginner please help asap!

    The best way to learn java, would be to start writing small web applications that use JavaScript for validation, calculations and what not. This would give you a good taste of its semantics. I would suggest creating applications for a simple timer, BMI calculator, creating recipe list and the list goes on.

  5. #5
    Super Moderator pbrockway2's Avatar
    Join Date
    Jan 2012
    Posts
    987
    Thanks
    6
    Thanked 206 Times in 182 Posts

    Default Re: Need help with coding.. I'm a beginner please help asap!

    The OP posted a request for someone to do his or her homework and got no takers. That was over 2 months ago and they haven't been heard from since. Closing the thread.

Similar Threads

  1. [SOLVED] Please help me to coding it (beginner)
    By kabaz94 in forum What's Wrong With My Code?
    Replies: 3
    Last Post: May 3rd, 2014, 07:04 AM
  2. Fixing a program that reads a .txt file java beginner I need help ASAP
    By coding2 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: January 12th, 2014, 03:45 PM
  3. Errors I don't know how to fix java beginner I need help ASAP
    By coding2 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: January 12th, 2014, 03:40 PM
  4. Beginner. Need Help finishing a simple Shoot em up game ASAP!!!!
    By cbock55 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: May 2nd, 2011, 08:13 AM
  5. NEED SERIOUS HELP CODING THIS PROGRAMMING ASAP
    By remy27 in forum What's Wrong With My Code?
    Replies: 3
    Last Post: September 20th, 2010, 03:03 PM

Tags for this Thread