Search:

Type: Posts; User: Dtank123456

Search: Search took 0.19 seconds.

  1. Replies
    20
    Views
    236

    Re: Homework help

    Nevermind!! Thank you again for the help!!!!
  2. Replies
    20
    Views
    236

    Re: Homework help

    THANK YOU!!!!!
    heres an updated version but I'm getting a thread overload in main method.



    import java.util.Random;
    import java.util.Scanner;

    public class Lab5{
  3. Replies
    20
    Views
    236

    Re: Homework help

    I understand on the communication!!! I'm trying to get what I'm thinking out. It's not working well!

    Yes... The array is being created by User inputed N
    N needs to be a array size with randomly...
  4. Replies
    20
    Views
    236

    Re: Homework help

    I should, but the way I had it was told to be wrong!

    I've instantiated the empty arrays to be filled with user N, had it before with If else statement listing all the arrays but that wasn't...
  5. Replies
    20
    Views
    236

    Re: Homework help

    I need to create an integer array for positive and negative integers that will be the same for all three lists to sort.

    I've tried instigating each one independently but that doesn't meet my...
  6. Replies
    20
    Views
    236

    Re: Homework help

    -Instructors comments
    You are making shallow copies of the array when you do list = list4; These are references!!! You have a to perform deep copies using System.arraycopy method. Also you are...
  7. Replies
    20
    Views
    236

    Re: Homework help

    I meant using System.arraycopy
  8. Replies
    20
    Views
    236

    Re: Homework help

    Ok,
    I will try to explain as best I can.
    I'll just start with the array copy.
    I've got currently just creating the empty array lists to be filled with N input integer.
    This isn't storing it...
  9. Replies
    20
    Views
    236

    Re: Homework help

    How would I use ArrayCopy and how would I generate random N ints for each sorting method and then output?
  10. Replies
    20
    Views
    236

    Homework help

    3) Modify the program to generate an array of user-defined size (see Excel worksheet) and initialize the array elements randomly. The array elements can be either positive or negative integers.
    ...
  11. Re: Need a different way to add Cubed numbers 1-10

    capitalization doesn't really matter... just answering the question.

    ummm.... as far as the loop goes,

    I'm not very keen on the loop idea but I'll do a little more reading and find out.
  12. Need a different way to add Cubed numbers 1-10

    /*
    * Put your documentation header here.
    */
    import java.util.Scanner;

    public class Lab5{

    /**
    * Returns an integer whose value is a^3 (a cubed).
    * @param any integer to be...
  13. Replies
    2
    Views
    147

    Re: Formatting using Printf()

    Thank you man.

    --- Update ---

    Thank you man
  14. Replies
    2
    Views
    147

    Formatting using Printf()

    //import Scanner
    import java.util.Scanner;

    public class Program3{

    public static void main(String[] args) {

    //intiate the Scanner
    Scanner input;
    ...
  15. Replies
    2
    Views
    143

    Need to format this!!

    Homework problem...




    import java.util.Scanner;

    public class Prog3{

    public static void main(String[] args) {
Results 1 to 15 of 16