User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
DaniWeb is a massive community of 374,568 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,510 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Code Snippets By: cscgal

SquareRoots in java

An example of method overloading. The program calls a function to get the square root of a number. The appropriate function (integer or double version) is executed. (View Snippet)

ComputeMortgage in java

The JOptionPane class is used to give the CompMortgage.java program a front-end GUI interface. The class is divided into numerous functions. (View Snippet)

LoanCalculation in java

A program similar to ComputeMortgage.java utilizing a mathematical formula and multiple methods to calculate a loan payment. (View Snippet)

RobustInput in java

A single class consisting of multiple methods is used to demonstrate the robustness of keyboard input in Java. A try-catch block is used. The program graphically prints out a square root table by using JTextArea, JScrollPane and JOptionPane. (View Snippet)

CircleClass in java

A demonstration of introductory object oriented programming. A class to define a circle object with radius, area, and perimeter parameters. (View Snippet)

Circle in java

This program consists of two functions in one class. It is the driver program for the CircleClass.java file. (View Snippet)

Rectangle in java

A program similar to CircleClass.java which defines a rectangle object. ClientProgram.java is the driver program for the Rectangle.java file. (View Snippet)

PlayClass in java

Two classes which aim to demonstrate private and public members of a class. A static variable is used as an accumulator to keep track of the number of class objects which are created. (View Snippet)

SwitchBlocks in java

A program combining a switch statement with static variables in a class. Based on the switch statement, a class object is dynamically created. (View Snippet)
This program consists of one function in one class. It uses MyInput.java to demonstrate how primitive data types are implemented in Java. (View Snippet)
All times are GMT -4. The time now is 5:34 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC