Cheers bud, once i know how to do 2d arrays i should be fine :)
Type: Posts; User: jonathanfox
Cheers bud, once i know how to do 2d arrays i should be fine :)
The whole coordinate shit and how you populate certain areas on you 2d array with integers or characters, like say im doing a sudoku puzle, how the hell do i populate the grid with random numbers in...
hey, I was wondering if anybody knows of any good websites or exercises for learning 2d arrays, im studying for my college repeats and one of the main things that will be on the test is a 2d array...
think i know what im doing wrong now, when i use a method i create i never make a new object that uses the method, hopefully that made sense
Hey guys, hows it goin
im pretty new to java and programming, ive gotten better at writing methods individualy, however if i get a big project that uses a good few methods and within other methods...
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>();...
it works :D, thought the answer for it was way too easy but screw it it does what its supposed too, thanks guys
okay first of all how do i post my code neatly like yours and ill show u the question we were given, ur code is hard to understand cus im terrible at java, and i didnt post all the code.
In a...
I tried doing that but when i made two sets and gave them values and tried to use the method , it said "cannot return value that is void"
for(int i=0;i<entries.size();i++){
//if it has java or the correct answer it will say its valid
// if not it will remove the element from the array
if(entries.get(i).contains("java")){
...
public class match
{
public int match(Set<Integer> myNumbers, Set<Integer> winningNumbers)
{
myNumbers.retainAll(winningNumbers);
return myNumbers.size();
}
}
hey guys im here cus i need some extra help with java to pass my first year of college