CS1113_Homework 8 # 2

CS1113_Homework 8 # 2 - { Scanner scan = new...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 // Matt Hergenrether // Section 10 // CS 1113 // April 22, 2008 // Homework 8 # 2 // deals with arrays import java.util.* // util contains the Scanner class public class Array { public static void main(String[] args)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: { Scanner scan = new Scanner(System.in) // Declare variables int n=7 int k= n-1 int a = new int[n] int b = new int[n] for(int x = 0 x <= n-1 x++) { a[x] = b[k] k--} } // End of Main } //End of class...
View Full Document

Ask a homework question - tutors are online