GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — CoreJavaPrograms/src/Programs/E4_Doublethearray.java at main · Divya-learn/CoreJavaPrograms Expand file tree/ Copy pathE4_Doublethearray.javaMore file actions 20 lines (15 loc) · 439 Bytes / Copy pathE4_Doublethearray.javaFile metadata and controls20 lines (15 loc) · 439 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 package src.Programs; public class E4_Doublethearray { public static void main(String[] args) { //Double the array int[] arr = {45,67,89,45,67,89}; // int arr[] = {45,67,89,45,67,89}; // []--> we can put in datatype int[] or in variable name arr[] int arr1; for(int i=0;i<arr.length;i++) { arr1 = arr[i] *2; System.out.println(arr1); } } } |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |