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
untitled Java Code
Posted by: Andy | May 11, 2011 @ 6:34am
Java Code
[
Download
]
int punkte = 0; String name = null; for (int y = 0; y < objS.length; y++) { for (int z = 0; z < objS.length; z++) { if (objS[y].getPunktzahl() < objS[z].getPunktzahl()) { break; } else { if (punkte < objS[y].getPunktzahl()) { name = objS[y].getName(); punkte = objS[y].getPunktzahl(); } else { break; } } } if (y == spieler-1) { System.out.println(); System.out.println("Der Momentan f�hrende ist: " + name + " mit einer Punktzahl von " + punkte + "."); } }
Syntax Highlighting
[
Open in new window
]
Author Comments
none
Rating
4.71 / 8
34 Votes
http://codebin.yi.org/1265
page generated in 0.00 seconds