Skip to content
Snippets Groups Projects
Commit 933fe79d authored by Josefina Tuomala's avatar Josefina Tuomala
Browse files

Upload New File

parent 90c7c2f1
No related branches found
No related tags found
No related merge requests found
public class Pisin {
public static void main(String[]args){
String teksti= "";
for (String sana: args){
if (sana.length()>teksti.length()){
teksti=sana;
}
}
if (teksti.length()==0){
System.out.println("Ei parametreja");
}
if (teksti.length()>0){
System.out.println("Pisin parametri: "+teksti);
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment