FirstPrograme.java - import java.util.Scanner public class...

Info icon This preview shows pages 1–2. Sign up to view the full content.

import java.util.Scanner; public class FirstPrograme{ public static void main(String []args){ int[][]inStock =new int[10][4]; int[]alpha =new int[20]; int[]beta =new int[20]; int[]gama ={11,13,15,17}; int[]delta ={3,5,2,6,10,9,7,11,1,8}; inputArray(alpha);//calling method inputArray System.out.println(); System.out.println(); //print aipha array details System.out.println("displaying the alpha array "); System.out.println("--------------------------- "); for(int i=0; i<alpha.length;i++){ System.out.printf("%d",alpha[i]); System.out.print(" "); } doubleArray(beta,alpha);//calling method doubleArray System.out.println(); System.out.println(); //print beta Array details System.out.println("displaying the beta array "); System.out.println("---------------------------"); for(int j=0; j<beta.length;j++){ System.out.printf("%d",beta[j]); System.out.print(" "); } copyGamma(gama,inStock);//calling method copyGamma System.out.println(); System.out.println(); //print inStock array details after calling copyGamma() method System.out.println("displaying the inStock"+" array after calling copyGamma() method "); System.out.println("-----------------------"+"---------------------------------- ---- "); for(int row=0; row<inStock.length;row++){ for(int col=0; col<inStock[row].length;col++){ System.out.printf("%6d",inStock[row][col]);
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

Image of page 2
This is the end of the preview. Sign up to access the rest of the document.
  • Fall '16

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern