The Code-Bin
Links
Home
Add your code!
All Listings
About
Latest Entry
Featured Scripts
Author's Website
Latest Entries
FFMPEG Thumbnail Scr...
PHP, 0.8KB
Jul. 29, 10:24pm
John
Z80 Assembler, 190 bytes
Feb. 17, 3:36am
John
Z80 Assembler, 176 bytes
Sep. 13, 2:19am
John
Z80 Assembler, 77 bytes
Sep. 13, 2:18am
John
Z80 Assembler, 209 bytes
Sep. 13, 2:17am
sample1
Posted by: lorin | February 28, 2015 @ 4:55pm
Java Code
[
Download
]
public class Temp { public int min(int[] b){ int a=30; int c=0; for(int i=0; i<b.length; ++i){ if (b[i]<a){a=b[i]; c=i; }} return c; } public static void main(String[] args) { ArrayList<Integer> t = new ArrayList<Integer>(); int[] a = {20,10, 50, 1, 34, 35, 36, 32, 10, 10, 35, 20, 50, 2000, 5}; System.out.println(min(a)); } }
Syntax Highlighting
[
Open in new window
]
Author Comments
none
Rating
4.63 / 8
180 Votes
http://codebin.yi.org/2180
page generated in 0.01 seconds