Results 1 to 1 of 1
  1. #1
    xrust01 is offline Member
    Join Date
    Feb 2011
    Rep Power

    Thumbs down Picture comparing

    Hi, I am a starter with Java and now I have the last problem to solve in my first "bigger program" I don't know how to explain what my program should do but I will try to describe my problem:

    so the problem:
    I have two arrays of pictures and every picture is in both arrays. User tryes to sort all pictures into a sequence. One array represents the right sequence and user changes the second array sequence. After every change, program has to compare if the user sequence is the same as a right sequence. but I don't know how...
    I tried this code, but all the time, the value of s is 0.

    int s = 0;
    for(int j = 0; j < 15; j++){
    if(array[j] == right[j]){
    s = s + 1; }}
    if (s == 15){array[15] = array[16];}

    could you help me???
    Last edited by xrust01; 02-15-2011 at 08:28 PM.

Similar Threads

  1. Getting a picture out of a jar?
    By Zman3359 in forum New To Java
    Replies: 4
    Last Post: 02-02-2011, 11:55 PM
  2. My picture is out of bounds?
    By ThatPinkSock in forum New To Java
    Replies: 3
    Last Post: 10-29-2010, 01:40 AM
  3. Get screenshot(picture) of own pc
    By shekhar2010 in forum New To Java
    Replies: 5
    Last Post: 01-24-2010, 03:48 AM
  4. picture backround
    By safiya in forum NetBeans
    Replies: 1
    Last Post: 10-18-2008, 07:13 AM
  5. Picture help
    By deathnote11 in forum AWT / Swing
    Replies: 13
    Last Post: 06-03-2008, 05:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts