Course Hero Logo

Project2.java - /* * To change this license header, choose...

Course Hero uses AI to attempt to automatically extract content from documents to surface to you and others so you can study better, e.g., in search results, to enrich docs, and more. This preview shows page 1 out of 1 page.

/** To change this license header, choose License Headers in Project Properties.* To change this template file, choose Tools | Templates* and open the template in the editor.*/package project;/**** @author Cindy Li*/import java.util.*;public class Project2 {/*** the function to calculate the num. of rectangles* @param n* @param m* @return number of rectangles*/public static long rectCount(int n, int m) {return (m*n*(n+1)*(m+1))/4;}/*** proper instructions to run the function above* @param args
End of preview. Want to read the entire page?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
Staff
Tags
Return statement, Articles with example Java code, Project Properties, Cindy Li

Newly uploaded documents

Show More

Newly uploaded documents

Show More

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture