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: I have a question about a question

  1. #1
    Member
    Join Date
    Mar 2012
    Posts
    37
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default I have a question about a question

    Hi,

    I'm not looking for anyone to do this question for me, but I was wondering if I could get some clarification on what you think this question is asking:

    "Write a program to determine if a given substring exists within a larger string. Both inputs should be entered through console."

    My take - The user enters a string, then the user enters another string. Write a program to see if the second string fits as part of the first string.

    eg. entry 1 - Peter piper picked a peck of pickled peppers
    entry 2 - Ice Hockey

    Write a program to determine that Ice Hockey is not a substring of entry 1.

    does this make sense or am I way off? Any other interpretations? Thanks guys.


  2. #2
    Forum VIP
    Join Date
    Jul 2010
    Posts
    1,621
    Thanks
    25
    Thanked 322 Times in 300 Posts

    Default Re: I have a question about a question

    Sounds right to me.
    NOTE TO NEW PEOPLE LOOKING FOR HELP ON FORUM:

    When asking for help, please follow these guidelines to receive better and more prompt help:
    1. Put your code in Java Tags. To do this, put [highlight=java] before your code and [/highlight] after your code.
    2. Give full details of errors and provide us with as much information about the situation as possible.
    3. Give us an example of what the output should look like when done correctly.

    Join the Airline Management Simulation Game to manage your own airline against other users in a virtual recreation of the United States Airline Industry. For more details, visit: http://airlinegame.orgfree.com/

Similar Threads

  1. help me in this question
    By zezo-555 in forum What's Wrong With My Code?
    Replies: 3
    Last Post: March 30th, 2013, 02:05 PM
  2. Question
    By OKLJ in forum Loops & Control Statements
    Replies: 1
    Last Post: September 21st, 2012, 11:07 PM
  3. Please help me with this question..
    By dr_90thrax in forum What's Wrong With My Code?
    Replies: 1
    Last Post: September 29th, 2011, 11:50 AM
  4. help with this, just a question
    By gonfreecks in forum Java Theory & Questions
    Replies: 2
    Last Post: November 11th, 2010, 10:16 PM
  5. question
    By vgenopoulos in forum Java Theory & Questions
    Replies: 1
    Last Post: May 8th, 2010, 05:11 PM