•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Java section within the Software Development category of DaniWeb, a massive community of 331,737 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 4,108 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
•
•
•
•
•
•
•
•
.,'this program will simply creates a diamond using asterisk.,'
just try out this code i am sure you will be interested.!..
email me about your comment in this simple program!..help me if you know the easiest way to construct this kind of program..' (View Snippet)
This class Generate A unique string. You can concatenate Timestamp to this Unique String and use it as Unique ID (View Snippet)
Here is the code to write a serverSocket which listens on a given port. I have used a dummy Socket to change serverSocket's port dynamically. This method uses a inner class which is basically a thread and it creates a serversocket in thread by given port no. If you want to change its port... (View Snippet)
Hi this is a very simple program explaining of Threads using the runnable interface. I hope this will help in some other way.:) email me at: sri_jes@yahoo.co.in (View Snippet)
Add n number of days to given date (View Snippet)
This program generates the 6 faces of a colour cube.
The faces are displayed in a JPanel, and they are also saved to C:/Faces as PNG files.
So non-windows users might have to alter code slightly. (View Snippet)
The code simply captures your working window as jpeg image and stores it in the same directory as where your java class after compiling by javac is being stored (View Snippet)
Well any Java programmer knows that a Java Interface only allows declaration of methods. You cannot define the methods inside interfaces.
Yet if somebody like me wants you to define a method in interface and wants the program gets compiled and runs successfully, what would you do?
Well the answer... (View Snippet)
A JOptionPane version of the game of Penny Pitch. Uses numerical values spread on a board, and computer picks randomly chosen spot to place a penny and at the end of a run adds up the total score.
*Two separate programs, PennyPitchGame and Square (Square Class)* (View Snippet)
A program that compounds interest continuously to a specified premium, rate, and number of years. Displays the total work up in the GUI panel in a tree form. (View Snippet)