JavaGyckle.java
3/2/2013
05:07 PM
Gyckle
Melody: SI-visan [Studentsången]
// javac -d . JavaGyckle.java // java se.dsek.dev_phest.JavaGyckle f280a1 package se.dsek.dev_phest; public final class JavaGyckle { public static void main(String[] args) { byte[] data = { 0, 0 }; int counter = 6; for(String s : args) //for string s in args { if(s.length() == counter) // if s length is counter { data = s.getBytes(); counter++; } } if (counter >= 6) //if counter is greater than sex { System.out.print(data[0]); System.out.print(data[1]); } return; } } /* För amatören: package se dsek dev phest public final class java gyckle public static void main string args byte data noll noll int counter sex for string s in args if s length is counter data s get bytes counter plus plus if counter is greater than sex system out print data noll system out print data ett return */