hello there.
i have a two dimensional vector.
int numbers[][]=new int[5][4];
i want to find if elements of row numbers[1] are equal to elements of row numbers[2];
i wrotted this code;
for(int i=0;i<5;i++){
for(int j=0;j<4;j++){
if(numbers[j]==numbers[(i+1)][j]{
System.out.print(numbers[j]);
}
}
}
ndrichim 0 Newbie Poster
NormR1 563 Posting Sage Team Colleague
ndrichim 0 Newbie Poster
NormR1 563 Posting Sage Team Colleague
ndrichim 0 Newbie Poster
ndrichim 0 Newbie Poster
NormR1 563 Posting Sage Team Colleague
ndrichim 0 Newbie Poster
NormR1 563 Posting Sage Team Colleague
ndrichim 0 Newbie Poster
NormR1 563 Posting Sage Team Colleague
ndrichim 0 Newbie Poster
NormR1 563 Posting Sage Team Colleague
ndrichim 0 Newbie Poster
NormR1 563 Posting Sage Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.