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...
Type: Posts; User: Usoda
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...
import java.util.Scanner;
class Hate
{
public static void main (String args[])
{
String Original;
String Modified;
int love;
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...