32,204 Topics
| |
this code is affecting the java coding [code]import java.io.*; public class fahrenheight{ public static InputStreamReader reader=new InputStreamReader (System.in); public static BufferedReader input=new BufferedReader (reader); public static void main (String[]args) throws Exception{ String fahrenheight; double C=(5/9); System.out.println("Celcius"); Celcius = input.readLine(); System.out.println("Fahtenheight"); Fahrenheight=Double.parse.Double(input.readLine()); System.out.println("C=(5/9)" + F-32 + " = "); System.out.println("(5/9)* Fahrenhight-32"); … | |
| This code snippet displays any word that the user enters in descending order, each time, removing the last charcter. So, [I]sravan953 [/I]in descending order would be: [I]sravan953 sravan95 sravan9 sravan srava srav sra sr s[/I] |
| Word: '[B]trouble[/B]' First vowel encountered: '[B]o[/B]' Therefore, the Piglatin version: '[B]oubletray[/B]' [I](From the first vowel till the last letter, concatenated with the first few letters which(or were not) left out, which concatenated with a standard 'ay')[/I] So, the Piglatin form of '[B]sravan953[/B]' would be: '[I]avan953sray[/I]' |
| This code snippet accepts a user-defined set of numbers, then accepts those many numbers, and displays the highest and lowest number. |
| The program accepts a sentence, stores each word in it as a separate element in an array, then asks you for a word, and return whether or not the word is present in the sentence you entered. |
This is another sorting algorithm called heap sort that I wrote using Java programming language. The heap sort code is quiete complex but i tried my best to write it | |
I'm sure this has already been done, but to practice understanding Data Structures better I decided to try making one of my own, given only an idea of what type of functionality I want, a pencil and some paper (as well as .txt file, modified into a .java file =p … | |
This program consists of a function in one class. It demonstrates the "Left To Right" Principle used by most of the languages. | |
Well , i have created a simple chatting interface . i would not call it a chatting interface actually cuz i had something else in my mind and finally landed on something else . i would like if you guys could excecute it and help me making it a real … | |
This code snippets shows how to reverse a string using a stack. | |
This is a simple implementation of the Chaos Game to produce a Seirpinski Triangle. | |
I'm not sure if it has been done yet or not, but I thought this program might be helpful to those that want to practice SQL in Java, because it sure is helpful for me! =) The assumption is that you're running Java 5+ and that you have a Database … | |
A program that finds the day of the week you were born on. Once again, this was adapted from a homework assignment, but I rewrote the entire thing from scratch >.< but it was a lot of fun. | |
A program that asks for a number, and uses that number to find the date that many days from today (or whatever day you're using it on). The code was adopted from a homework assignment, so that's why the variable names might not make a lot of sense, I was … | |
Finds all (integer) the triples from zero to max. won't return duplicates (ie. (3,4,5) and (4,3,5)) prints them demonstrates: nested loops, multiple classes, proper equals(Object) override (no hashcode though), writing to file | |
Its a simple program giving the demo of intre thread communication based on MovingBalls.java program... Hopng that its Useful For U? | |
.,'this is a simple java codes in w/c will enable to read a txt files. | |
..'this is a simple program in w/c enables to create a txt file. it ask input from user first then put that in the txt file. :-) | |
..this is a simple java code w/c allows to produce a beep sound. timer also is being applied here. hope it will help for any reason it may serve. :-) | |
.,'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..' | |
This class Generate A unique string. You can concatenate Timestamp to this Unique String and use it as Unique ID | |
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 … | |
Hi this is a very simple program explaining of Threads using the runnable interface. I hope this will help in some other way.:) | |
| |
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. | |
hello frnds this is a snippet that removes comments of c, c++ , java files | |
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 … | |
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)* | |
A program that compounds interest [FONT="]continuously [/FONT]to a specified premium, rate, and number of years. Displays the total work up in the GUI panel in a tree form. | |
A simple program that displays the Muller-Lyer Illusion. Also tests the ability to draw simple figures using the Paint Component function. |
The End.