文档介绍:Programming for Linguists:
Java™ Technology for Language
Researchers
Michael Hammond
Blackwell
Publishers
Programming for Linguists
© Michael Hammond 2002
Editorial Offices:
108 Cowley Road, Oxford OX4 1JF, UK
Tel: +44 (0)1865 791100
350 Main Street, Malden, MA 02148-5018, USA
Tel: +1 781 388 8250
The right of Michael Hammond to be identified as the Author of this Work has been
asserted in accordance with the UK Copyright, Designs and Patents Act 1988.
All rights reserved. No part of this publication may be reproduced, stored in a retrieval
system, or transmitted, in any form or by any means, electronic, mechanical,
photocopying, recording or otherwise, except as permitted by the UK Copyright,
Designs and Patents Act 1988, without the prior permission of the publisher.
Java™ and all Java™-based marks are trademarks or registered trademarks of Sun
Microsystems, Inc. in the United States and other countries. Blackwell Publishing is
independent of Sun Microsystems, Inc.
First published 2002 by Blackwell Publishers Ltd, a Blackwell pany
Library of Congress Cataloging-in-Publication Data has been applied for.
ISBN 0-631-23041-6 (hardback); ISBN 0-631-23042-4 (paperback)
A catalogue record for this title is available from the British Library.
Set in on 13 pt Sabon
by Graphicraft Limited, Hong Kong
Printed and bound in Great Britain
by . International, Padstow, Cornwall
For further information on
Blackwell Publishers, visit our website:
Contents
Preface ix
Acknowledgments xii
1 Why Programming and Why Java™ Programming? 1
Why programming? 1
Why Java technology? 2
Download and install the Java Development Kit 3
How to read this book 4
2 Getting Started 5
Edit, compile, run 5
Edit 5
7
Run 8
Other platforms 8
Some details 9
Summary 9
Exercises 9
3 The Basics 10
and the form of programs 10
Variables 11
Arrays 15
Control