How do I add to an array from a static method?

Java array please help?

  • Please create 1 file called ArrayLab. In that file you will write methods that represent each one of the objectives below. When the methods are complete you will create the main method, create a new ArrayLab object and invoke each of the methods you created. a.) In a method declare an array that stores the values from 1 to 10. Initialize and print the values using a single for loop. b.) In a method declare an array that stores the names of your family. You should declare and initialize the values using the short hand method. Use a for loop to print out the values c.) In a method declare an array that stores 4 lucky numbers. You should add the values long hand. You will need to use a for loop to print the values d.) In a method declare a multidimensional array that will store the times tables up through 10. You will need to use 2 for loops to store the values and print them out

  • Answer:

    I suspect you're supposed to learn more from this assignment than the art of Copy & Paste. Code what you can, when you get stuck, post the code here and someone will probably help you get past the sticky points.

mrchange... at Yahoo! Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.