Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

A few Q's on arrays

  Asked By: Wayne    Date: Feb 06    Category: Java    Views: 893

I'm working with byte arrays for a program at the moment, and I was

Is there standard java method that returns a sub-array of an array?
(I can code this myself, but I'm just wondering if there's a standard
class hidden away somewhere.)

Is there a way to see whether an array contains another array as a
subarray of it? (in sequence, not scattered through the array) (I'm
not sure how to code this if there isn't a standard class, any help
would be appreciated).

And do byte-related methods in java always assume the bytes are



1 Answer Found

Answer #1    Answered By: Jarrod Williams     Answered On: Feb 06

checkout the java.util.Arrays class. it has a bunch
of static methods  for array  manipulation.

Didn't find what you were looking for? Find more on A few Q's on arrays Or get search suggestion and latest updates.