Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 6 of 6

Thread: help with index in array

  1. #1
    Junior Member
    Join Date
    Jul 2013
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default help with index in array

    hello i am working on audio watermark , i am finding the largest integer value between each 10 samples and embed the bit of text to it what i to do if there is duplicated value , or when i going to extract may be after embed causes duplicated value , the problem is that i want one maximum value to embed the embed the bit and one maximum value to extract
    regards


  2. #2
    Super Moderator pbrockway2's Avatar
    Join Date
    Jan 2012
    Posts
    987
    Thanks
    6
    Thanked 206 Times in 182 Posts

    Default Re: help with index in array

    I'm not exactly sure I understand the problem... Perhaps you could explain how you "embed" things in the int.

    If I was looking for the maximum of ten things and needed to decide between equal values, one way would be to choose the last of the equal values. Or the first. (Or, possibly, I could do the embedding with *all* of the maximum values if I thought equal values would not be very common.)

    But then there is a little problem with decoding. It might be that the "embedding" operation changes the int value so that it is no longer the maximum. It seems to me that this could be a problem whatever scheme you choose to decide the int to embed into. Which is why it might help to provide more details.

  3. #3
    Junior Member
    Join Date
    Jul 2013
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default help with index in an array

    hi
    sure i convert the int to bitset and embed to it , but i ask if there is a way to retrieve the position of maximum value i embed to it,to avoid error during the extract

  4. #4
    Junior Member
    Join Date
    Jul 2013
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: help with index in array

    hi
    sure i convent the int to bit and embed to it , but i ask if here is away to retrieve position of maximum value i embed to it to avoid error during the extract?
    thanks

  5. #5
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: help with index in an array

    Not sure I understand the question. Can you post the code you're trying with the error?

    Just realized this was a duplicate post. Please don't post multiple threads on the same topic in different areas of the forum.

  6. #6
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 263 Times in 232 Posts

    Default Re: help with index in array

    Quote Originally Posted by lanya1 View Post
    sure i convent the int to bit and embed to it
    What exactly do you do again? I do not understand.

    Quote Originally Posted by lanya1 View Post
    but i ask if here is away
    What?

    --- Update ---

    Please do not double post your question
    Threads merged

Similar Threads

  1. Pleas help! array index out of bouderies
    By ProgrammerNoobE in forum What's Wrong With My Code?
    Replies: 3
    Last Post: May 29th, 2013, 04:30 AM
  2. [SOLVED] Merge two 1D array's into a new 1D array. Trouble appending last index
    By norske_lab in forum What's Wrong With My Code?
    Replies: 1
    Last Post: August 30th, 2012, 12:57 PM
  3. Array Index Out of bounds?
    By blazeking in forum Collections and Generics
    Replies: 1
    Last Post: March 29th, 2012, 01:44 AM
  4. Array index out of bounds
    By fortune2k in forum Collections and Generics
    Replies: 1
    Last Post: November 30th, 2010, 07:11 AM
  5. index of array
    By nasi in forum Java Theory & Questions
    Replies: 1
    Last Post: April 12th, 2010, 02:39 AM