Home Accessibility Courses Twitter The Mouth Facebook Resources Site Map About Us Contact
For 2023 (and 2024 ...) - we are now fully retired from IT training.
We have made many, many friends over 25 years of teaching about Python, Tcl, Perl, PHP, Lua, Java, C and C++ - and MySQL, Linux and Solaris/SunOS too. Our training notes are now very much out of date, but due to upward compatability most of our examples remain operational and even relevant ad you are welcome to make us if them "as seen" and at your own risk.

Lisa and I (Graham) now live in what was our training centre in Melksham - happy to meet with former delegates here - but do check ahead before coming round. We are far from inactive - rather, enjoying the times that we are retired but still healthy enough in mind and body to be active!

I am also active in many other area and still look after a lot of web sites - you can find an index ((here))

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
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 ...
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) ...
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 ...
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 ...
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 ...
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 ...
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
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., 2024: 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho

PAGE: http://www.wellho.net/resources/J707.html • PAGE BUILT: Sun Oct 11 14:50:09 2020 • BUILD SYSTEM: JelliaJamb