User Profile

Collapse

Profile Sidebar

Collapse
Onalenna
Onalenna
Last Activity: Aug 13 '15, 02:33 PM
Joined: Aug 10 '15
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Onalenna
    replied to using arrays
    in Java
    word taken and got into consideration and thank you very much too much appreciating it so here i tried the code but am not sure that is okay according to the question above..



    Code:
    import java.util.Scanner;
    
    public class Main {
    
        public static void main(String[] args) {
            Scanner in=new Scanner (System.in);
            int num[]=new int[5];
            int i=0;
            int sum=0;
    ...
    See more | Go to post
    Last edited by Rabbit; Aug 13 '15, 03:41 PM. Reason: Please use [code] and [/code] tags when posting code or formatted data.

    Leave a comment:


  • Onalenna
    replied to using arrays
    in Java
    I copied as it is because it was one the question i was asked by my lecturer
    am just new in the course and am bit struggling..... ....
    See more | Go to post

    Leave a comment:


  • Onalenna
    started a topic using arrays
    in Java

    using arrays

    create a class called Findsum
    using arrays and the scanner.
    store numbers into the array and use a method called find_sum(int [] arrayNumbers), that takes the array as an argument and return the total/sum of array elements
    See more | Go to post
No activity results to display
Show More
Working...