Skip to content
Snippets Groups Projects
Commit 9b700808 authored by Elias Koivunen's avatar Elias Koivunen
Browse files

Upload New File

parents
Branches
No related tags found
No related merge requests found
public class Pisin {
public static void main(String[] args) {
String suurin = "";
for (String parametri : args){
if (parametri.length() > suurin.length()){
suurin = parametri;
}
}
if (suurin.equals("")){
System.out.println("Ei parametreja");
} else{
System.out.println("Pisin parametri: " + suurin);
}
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment