Skip to content
Snippets Groups Projects
Commit e40c2fb8 authored by Elma's avatar Elma
Browse files

TaulukkoApumetodit ohjelma

parents
Branches
Tags
No related merge requests found
public class TaulukkoApumetodit{
/* tähän kirjoitetaan kommentti siitä, mitä ohjelma tekee */
// tässä voidaan esitellä luokkamuuttujia tai -vakioita
public static void main (String[] args) {
String m = [-3, 2, 6, 5, -5, 3];
public static int[] annaPositiiviset(int[] taulukko);
for (int i=0; i < m.length; i++){
if (charAt(i) < 0){
replace(charAt(i), "");
}
}
return m;
public static int[] poista(int[] taulukko, int indeksi);
}
}
\ 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