Home Accessibility Courses Twitter The Mouth Facebook Resources Site Map About Us Contact
 
Python, Lua and Tcl - public course schedule [here]
Private courses on your site - see [here]
Please ask about maintenance training for Perl, PHP, Java, C, C++, Ruby, MySQL and Linux / Tomcat systems

Phone System reconfiguration 11.1.2018 and 12.1.2018 - we are on email but incoming phone not available all the time
 

Well House Consultants
You are on the site of Well House Consultants who provide Open Source Training Courses and business hotel accommodation. You are welcome to browse and use our resources subject to our copyright statement and to add in links from your pages to ours.
Other subject areas - resources
Java Resources
Well House Manor Resources
Perl Resources
Python Resources
PHP Resources
Object Orientation and General topics
MySQL Resources
Linux / LAMP / Tomcat Resources
Well House Consultants Resources
Extras Resources
C and C++ Resources
Ruby Resources
Tcl/Tk Resources
Web and Intranet Resources
Java module J707
Strings
Exercises, examples and other material relating to training module J707. This topic is presented on public courses Learning to Program in Java, Java Bootcamp, Java Programming for the Web

Java supports a Unicode character set that allows for more than 65,000 different characters. Single characters can be held in char variables, and multiple character sequences (strings) can be held in char arrays, StringBuffer objects and String objects.

Related technical and longer articles
Analysing incoming data lines

Articles and tips on this subjectupdated
4414Java - converting an integer to a fixed length string
There are some things in Java which you would think are no-brainers (one-liners) but turn out to be not quite so simple. This issue has improved over the years, with additions of methods like split to java.lang.String, but some gaps remain. And the solution - the joy of an OO langauge - is for you ...
2015-02-04
 
4393Splitting Java strings and extracting numbers
In Java you can use packages in the utility class to handle strings, or you can use methodsin java.lang.String which has been enhanced from version to version and now includes methods such as String.split(). Examples from today's course - taking a line of data (which could have been read from a file) ...
2015-01-15
 
3048String handling - from first steps to practical examples
Initial String handling examples on a training course are sometimes a bit mundane - and that's because we have to cover some of the basics like "what is a string" before we start reading them in useful quantities from files, databases, or web resources. But it's important to get those basics understood ...
2010-11-13
 
2649Length, size or capacity in Java?
You get the length of an array, but you ask about the size() of an ArrayList, and you can inquire into the capacity() of a StringBuffer. Aren't they really all the same sort of thing? Which does Java use in which circumstance? Java uses the word length when you're asking about something that can be ...
2010-03-03
 
1557Trying out our Java examples on our web site
We've included all of the source code of our training examples on this web site for quite a long time now ... and about a year ago we put working copies of most of the PHP scripts up there too (we have left out those which show security holes). Now we're in the process of adding some of the Java code ...
2008-02-28
 
1446An answer to a student asking 'Help'
I've got time - a lot of time - to help people who are learning; it's really rewarding to teach the subjects that we do, and the most rewarding students are those who take the time to go above and beyond the norm in asking questions. So why, when I get an email out of the blue asking for help with a ...
2007-11-27
 
Examples from our training material
Station.java   Extracting data from a string, passing to factory
StringBreaker.java   Splitting and interpertting a string
Vest.java   Open file, read line by line, do string manipulation
ashton.java   Comparing Strings
cricklade.java   String object manipulation
crudwell.java   copyValueOf and toCharArray examples
highworth.java   More character variables
malmesbury.java   Stringbuffer
marston.java   Arrays of Character String Objects
minety.java   Accessing characters within a string object
oaksey.java   indexOf and substring
purton.java   startsWith endsWith and other string comparison methods
ransbury.java   char variables and char arrays
Pictures
A memorable course - 8 students of 6 different nationalities
Background information
Some modules are available for download as a sample of our material or under an Open Training Notes License for free download from [here].
Topics covered in this module
Character variables.
String constants.
Creating String objects.
Operations on strings.
Comparing strings.
Accessing characters within strings.
Character arrays v String objects.
String buffers.
Complete learning
If you are looking for a complete course and not just a information on a single subject, visit our Listing and schedule page.

Well House Consultants specialise in training courses in Java,Ruby, Lua, Python, Perl, PHP, and MySQL. We run Private Courses throughout the UK (and beyond for longer courses), and Public Courses at our training centre in Melksham, Wiltshire, England. It's surprisingly cost effective to come on our public courses - even if you live in a different country or continent to us.

We have a technical library of over 700 books on the subjects on which we teach. These books are available for reference at our training centre.


You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2018: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho

PAGE: http://www.wellho.net/resources/J707.html • PAGE BUILT: Mon Feb 8 18:55:24 2016 • BUILD SYSTEM: WomanWithCat