Thread: Java help
View Single Post
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 12-16-2013 , 20:57   Re: Java help
Reply With Quote #6

Quote:
Originally Posted by jingojang View Post
Hi nikilgupta345, would you mind creating an example?
PHP Code:
String s "This is a string";
String[] splitString s.split();
// splitString = {"This", "is", "a", "string"}
String firstWord splitString[0];
String lastWord splitString[splitString.length 1];

System.out.println("First word: " firstWord " Last word: " lastWord); 
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345