Home
Site Map
Useful Tools
Graphing Calc

Scientific Calculator

Nested Loops in Java

Student Labs 1

  • Factorial Project(Use Eclipse)
    Given an array of ints
  • calculate the sum of the factorials of all elements in the array
  • you may use any array that you want to demonstrate this project but do not hard code anything
  • Input Array   Output
    int[] j = new int[3];
    j[0]= 2;
    j[1]= 3;
    j[2] = 4;
    2! + 3! + 4! 32
      Array of Strings Projects
    • Given an Array of Strings count up the number of times that "S" appears in the entire array. Youcan use the String array below, but do not hard code anything.
    • 
      		String[] arrayOfStrings = new String[10];
      arrayOfStrings[0] = "abakdjfka;223" ;
      arrayOfStrings[1] = "ssajdkajdksssssafd" ;
      arrayOfStrings[2] = "ssgfsajdkajdksssssafd" ;
      arrayOfStrings[3] = "ajkfljasdkl;ssssjkss223" ;
      arrayOfStrings[4] = "" ;
      arrayOfStrings[5] = "adfabskafjkssssSss" ;
      arrayOfStrings[6] = "ssss@sssSSss@s" ;
      arrayOfStrings[7] = "sssasfdss@@@@ssssasfasfass" ;
      arrayOfStrings[8] = "ajkfdjasdkljfa;lsjfladsSSS" ;
      arrayOfStrings[9] = "ssssjafjklasdjflkadsjflka;dsjf;ldfasfj;dskajdksssss" ;
    Sitemap