User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Java section within the Software Development category of DaniWeb, a massive community of 402,505 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,793 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.
Please support our Java advertiser: Lunarpages Java Web Hosting
Contribute Code
A demonstration of introductory object oriented programming. A class to define a circle object with radius, area, and perimeter parameters. (View Snippet)
This program consists of two functions in one class. It is the driver program for the CircleClass.java file. (View Snippet)
A program similar to CircleClass.java which defines a rectangle object. ClientProgram.java is the driver program for the Rectangle.java file. (View Snippet)
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)
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)
This program consists of two functions in one class. It demonstrates a recursive function to calculate the factorial of a number. (View Snippet)
This class will sort strings in alphabetical order. (View Snippet)
Here is a code to sort numbers instead of strings using the BubbleSort method. The difference here is you don't use compareTo() for numbers as you do with strings. (View Snippet)
Contribute Code
All times are GMT -4. The time now is 5:47 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC