hey left it a day and came to it and finally solved it thanks guys :D
Type: Posts; User: jonathanfox
hey left it a day and came to it and finally solved it thanks guys :D
ive been thinking about this and i think i know a way, but is a function the same as a method? could i return a method ? or do i sound really stupid haha
i know i should return the second list aswell put im not sure how to theres a lot of small things in java i have to learn
import java.util.ArrayList;
public class Split
{
private ArrayList<Integer> numbers;
public Split()
{
numbers = new ArrayList<Integer>();
numbers.add(1);
numbers.add(5);
o ya sry stupid mistake, but how do i split the list in two? id say ill hav to make another two lists?
Hey everyone im stuck on a java problem and i could use some help
public class Split
{
private ArrayList<Integer> numbers;
public Split()
{
numbers = new ArrayList<Integer>();...