Question: Java language Write down a java program segment to do the following: -Declare and initialize an array of integers as follows: 1 2 5 -6
Java language

Write down a java program segment to do the following: -Declare and initialize an array of integers as follows: 1 2 5 -6 -2 -Declare and initialize an array of floating point numbers as follows: -1.2 2.1 3.3 0.2 -6.0 -Declare and initialize an array of Boolean values as follows: true false true false -Add each element of the first array to the corresponding element of the second array if the corresponding Boolean element in the third array is true. import java.util.*; import java.io.*; public class prog{public static void main(String []args){}}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
