Find Us On: Facebook Twitter Rss Feed Blog
Need To Register? Sign Up Login

java

Jstorm1000
Jstorm1000 


please use eclipse Attachments Tags Clarifications

Answers

Lab1 Assignment

sudheer488
sudheer488 



Lab1 Assignment Attachments
Capture.PNG (9 K) Download Preview

MainExecutable.java (1 K) Download Preview
*/ public static void main(String[] args) { String s = new String("Dr.Nick: \"Hello everybody!\""); System.out.println("firstWord: " + SentenceTransformer.firstWord(s)); System.out.println("lastWords: " + SentenceTransformer.lastWords(s));

SentenceTransformer.java (1 K) Download Preview
the first word*/ String[] words = thePhrase.split(" "); return words[0]; } static String lastWords (String thePhrase) { /* take 'thePhrase' and return the entire phrase except the first word */ String[] words = thePhrase.split(" "); int n = words.length; String

WordTransformer.java (1 K) Download Preview
} static String lowerCase (String theWord){ /* return 'theWord' with the first letter in lowercase */ return theWord.substring(0, 1).toLowerCase() + theWord.substring(1); } static String upperCaser (String theWord) { /* return 'theWord' in all uppercase */ return theWord.toUpperCase(); }

Screenshots
Screenshot
Purchase Answer