Exercise 5 Week 2 - Java Tutorials MoreString Strings Substring Methods

Опубликовано: 08 Октябрь 2014
на канале: Red Stag Digital
344
4

For more: http://redstagdigital.com/

Next Video:    • Exercise 6 Week 2 - Java Tutorial Mis...  
Description of Problem:
Given a user inputted string, print out a new string where "big " has been added to the front of the input string. However, if the inputted string already begins with "big", then print out the input string unchanged.

Objective:
Write a Java program called MoreString that prompt the user to enter a string. Print out to the screen a new string where "big " has been added in front of (before) the input string. However, if the input string already begins with "big", print out the input string unchanged. Note: use the .equals() method from the String class to compare two strings.