Search:

Type: Posts; User: Usoda

Search: Search took 0.07 seconds.

  1. Replies
    7
    Views
    1,968

    [SOLVED] Re: Replace String Method? Noobie :/

    Output:

    I love ____, but hate ____:
    [DrJava Input Box]
    Original line of text:
    i love cats but hate dogs
    The word hate is replaced with love:
    i hate cats but love dogs
    First word of...
  2. Replies
    7
    Views
    1,968

    [SOLVED] Re: Replace String Method? Noobie :/

    import java.util.Scanner;

    class Hate
    {
    public static void main (String args[])
    {
    String Original;
    String Modified;

    int love;
  3. Replies
    7
    Views
    1,968

    [SOLVED] Replace String Method? Noobie :/

    This is a program to change the first word in a user input sentence with the last.

    I am extremely sorry if this is a simple fix but I either get a repeated String or a printout error. I have...
Results 1 to 3 of 3