您的位置:寻梦网首页编程乐园Java天地Core JavaJava Lecture Notes

Introduction

Content

Apply

Reflect

Extend

previous.gif
 (3087 bytes)

next.gif
 (2959 bytes)


Apply Index

Apply Page # 6

Exercise 1 — Declaring and Defining arrays

(1) Declare an array of char called surName

(2) Declare an array of int called ages

(3) Declare an array of Object called things

(4) Define array surName to have a size of 20 chars

(5) Define array ages to have a size of 5 ints

(6) Define array things to have a size of 1000 Objects

(7) In a single line, declare an array of char address with a size of 55

Discussion/Suggested solution to Exercise 1

Back to content

Back to top

basicline.gif (169 bytes)

RITSEC - Global Campus
Copyright ?1999 RITSEC- Middlesex University. All rights reserved.
webmaster@globalcampus.com.eg