Purchase Solution

Declaring and initializing Java arrays

Not what you're looking for?

Ask Custom Question

1. Write Java syntax which declares a 1D integer array myary that holds 5 values.

2. Instantiate and initialize the array from Q#1 with values: 5, 3, 5, 7,

Purchase this Solution

Solution Summary

This solutions demonstrates how to declare and initialize an array in Java.

Solution Preview

When declaring an array in Java you need to provide the name of the new variable, the type of elements that the array will hold and the number of ...

Purchase this Solution


Free BrainMass Quizzes
Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.

Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.

Basic Networking Questions

This quiz consists of some basic networking questions.