Last active
October 9, 2015 13:25
-
-
Save mr-karan/f482d5f2e373ffe47bcc to your computer and use it in GitHub Desktop.
subarrays in java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.*; | |
import java.util.*; | |
import java.text.*; | |
import java.math.*; | |
import java.util.regex.*; | |
public class subarray { | |
public static void main(String[] args) { | |
Scanner reader=new Scanner(System.in); | |
for (int i=0;i<=5;i++){ | |
for (int j=1;j<=5;j++) { | |
System.out.println("a["+i+":"+j+"]"); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment