Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #14097

Re: Help with program

From rossum <rossum48@coldmail.com>
Newsgroups comp.lang.java.programmer
Subject Re: Help with program
Date 2012-05-01 20:41 +0100
Message-ID <4ne0q71jgiq4qdpcs8hles6hr564col2i1@4ax.com> (permalink)
References <0d9aaec9-10f1-42b5-af5c-f4d563a934ab@e42g2000yqa.googlegroups.com>

Show all headers | View raw


On Tue, 1 May 2012 10:31:36 -0700 (PDT), mbuenik5@yahoo.com wrote:

>I need help writing a Java method named swap that takes an integer
>array and two indexes. The method then swaps the integers at those two
>indexes. The return type for swap is void. Can anybody write this out?
This is homework.  We don't do homework.  What we will do is to help
you with your homeworrk.  YOU do the work, we just help and advise.

>I need help writing a Java method named swap that takes an integer
>array and two indexes. ... The return type for swap is void.
Can you do that?  Just write a method, named swap, that takes the
three specified parameters and does nothing.  Do so and get it to
compile.  If you can't get it to compile, then post your code here and
we can help.

Do not proceed until your empty method compiles correctly and without
errors.

>The method then swaps the integers at those two indexes.
Now add the code inside the method to use your three parameters to do
what the question asks.  Test it thoroughly to make sure it works
correctly.  Again, if you get into difficulties, post your code here
and we can help.  No code = no help.

rossum

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Help with program mbuenik5@yahoo.com - 2012-05-01 10:31 -0700
  Re: Help with program Patricia Shanahan <pats@acm.org> - 2012-05-01 10:53 -0700
    Re: Help with program glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2012-05-01 19:12 +0000
      Re: Help with program Patricia Shanahan <pats@acm.org> - 2012-05-01 12:17 -0700
        Re: Help with program Leif Roar Moldskred <leifm@dimnakorr.com> - 2012-05-01 15:27 -0500
          Re: Help with program Leif Roar Moldskred <leifm@dimnakorr.com> - 2012-05-01 15:32 -0500
        Re: Help with program Arne Vajhøj <arne@vajhoej.dk> - 2012-05-01 19:51 -0400
          Re: Help with program Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-05-01 17:06 -0700
            Re: Help with program Patricia Shanahan <pats@acm.org> - 2012-05-01 18:08 -0700
              Re: Help with program Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-05-02 12:53 -0700
            Re: Help with program Arne Vajhøj <arne@vajhoej.dk> - 2012-05-02 16:25 -0400
              Re: Help with program Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-05-02 15:27 -0700
  Re: Help with program Tsukino Usagi <usagi@tsukino.ca> - 2012-05-02 03:15 +0900
    Re: Help with program markspace <-@.> - 2012-05-01 11:25 -0700
  Re: Help with program Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-05-01 11:16 -0700
  Re: Help with program markspace <-@.> - 2012-05-01 11:16 -0700
  Re: Help with program rossum <rossum48@coldmail.com> - 2012-05-01 20:41 +0100
  Re: Help with program Roedy Green <see_website@mindprod.com.invalid> - 2012-05-01 18:15 -0700

csiph-web