1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Finding the longest word (Java)

Discussion in 'Software Development' started by Viper, Dec 5, 2001.

Thread Status:
Not open for further replies.
  1. Viper

    Viper Thread Starter

    Joined:
    Nov 5, 1999
    Messages:
    366
    HI again

    I'm a bit new to Java programming and was wondering how i would find the longest word. (In this context a word is taken to mean any sequence of characters which does not contain a space).

    So, if a string object had the following state :

    This is a test_string (to illustrate) a line containing several words.

    The state of the string object is created from the contents of a file.

    I'm absolutely stumped as to how to create the code for this :(
     
  2. Viper

    Viper Thread Starter

    Joined:
    Nov 5, 1999
    Messages:
    366
    i take it that is a no :eek:
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/60788

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice