Package com.zybooks.dsaj.primer
package com.zybooks.dsaj.primer
Code from the chapter "Java Primer"
-
ClassDescriptionDemonstration of a recursive method to find the maximum value in an array.Example of valid and invalid method for scaling a numeric array.Example of a static method that analyzes an arrayExample of a static method that analyzes an array using for-each loop.An integer counter that can be incremented and reset to zero.A demonstration of the use of the Counter class.A simple model for a consumer credit card.An example that uses an enumerated type.An enumerated type for days of the week.A demonstration of primitive types.An example of nested conditional statementsOur version of the classic Hello World.A demonstration of Java's wrapper types.