Skip to content

Instantly share code, notes, and snippets.

@nijjwal
Last active August 29, 2015 14:13
Show Gist options
  • Save nijjwal/6b1241fe81666c0611cf to your computer and use it in GitHub Desktop.
Save nijjwal/6b1241fe81666c0611cf to your computer and use it in GitHub Desktop.
Main.java
import java.util.ArrayList;
public class Main extends Functions{
public static void main(String[] args) {
Functions test = new Functions();
//Create an array to test
int[] array = {8,16,24,5,3,2};
int key = 8;
ArrayList<Integer> results = test.Multiplesofanumber(key, array);
for(int i=0; i< results.size(); i++)
{
System.out.print(results.get(i)+" ");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment