Example Programs

Example Programs - InputInteger.java use a loop to read...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Example Programs Triangle.java - nested loops ChristmasTree.java - more nested loops Eighteen.java - Exercise 18, ch 2, Reges and Stepp book Quiz4.java - solution to quiz 4 TestType.java -- validating input type ReverseString.java Digits.java -- read an integer from the user, and print the sum of its digits Nested.java - simple example of nested loops StringArray.java SomeCircles.java CommandLine.java SquareTwo.java -- overriding methods inherited from Object class SquareTwoTest.java Rectangle.java RectangleDriver.java MarsRoverExample.java - part of MarsRover class MarsRoverTestExample.java Point.java - represents a point in 2 dimensional space PointDriver.java Date.java - represents any date Fillup.java - use a constant, compute price of gas CloseFloats.java - determine if two floating point numbers or really close Palindrome.java - determine if a string of length 3 is a palindrome
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: InputInteger.java- use a loop to read input from user until an integer is entered TriangleOfNumbers.java- nested loops Print15.java- loop CountPosNegZero.java- read ints from user and count number of negative, positive and zero inputs StringPractice.java RandPrac.java- generating pseudo-random numbers ScanTest.java- using the Scanner class ScanTest2.java- using the Scanner class to read input from a file ReadLine.java- practice with the String methods Box.java- practice with nested loops Coin.java CoinToss.java Square.java SquareTest.java Circle.java CircleTest.java FormattedOutput.java Rectangle.java Pair.java PairTest.java Student.java StudentTester.java Tax.java (printf example) Square.java SquareTest.java SquareTwo.java SquareTwoTest.java SquareRectangleTest.java SockPuppet.java...
View Full Document

This note was uploaded on 02/24/2010 for the course CS 305j taught by Professor Mikescott during the Spring '10 term at University of Texas.

Page1 / 3

Example Programs - InputInteger.java use a loop to read...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online