Skip to content
Snippets Groups Projects
Commit 015b5704 authored by Ida Nurmi's avatar Ida Nurmi
Browse files

Tehtävä 1

parent 2551a9ce
No related branches found
No related tags found
No related merge requests found
public class Pisin {
public static void main(String[] args){
String pisin = "";
if(args.length == 0){
System.out.println("Ei parametrejä");
}else{
for(int i = 0; i < args.length; i++){
if(args[i].length() > pisin.length()){
pisin = args[i];
}
}
System.out.println("Pisin parametri: " + pisin);
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment