Forum: Java Aug 26th, 2009 |
| Replies: 0 Views: 1,565 This program converts any number that you enter to a binary number. For more information on binary numbers, visit:
http://www.math.grin.edu/~rebelsky/Courses/152/97F/Readings/student-binary
:) |
Forum: Java Aug 26th, 2009 |
| Replies: 1 Views: 1,146 This code snippet allows you to know whether a word/sentence you have entered is a 'Magic Word' or not.
A 'Magic Word' is a word which has at any position two consecutive letters. This can be... |
Forum: Java Aug 23rd, 2009 |
| Replies: 8 Views: 312 Try this, it should work:
class print_ascii
{
static void ascii()
{
for(int j=1;j<=26;j++)
{
int n=65;
for(int i=1;i<=j;i++) |
Forum: Java Aug 2nd, 2009 |
| Replies: 9 Views: 477 Try:
import java.io.*;
class string
{
void palindrome()throws IOException
{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
System.out.println("Please enter a... |
Forum: Java Jul 31st, 2009 |
| Replies: 7 Views: 986 Here, try this:
import java.io.*;
class even_or_odd
{
static void check()throws IOException
{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
... |
Forum: Java Jul 21st, 2009 |
| Replies: 3 Views: 231 I am using another code to get only the top up-side down triangle:
class hourglass
{
static void pattern()
{
for(int j=1;j<=4;j++)
{
for(int... |
Forum: Java Jul 21st, 2009 |
| Replies: 3 Views: 231 Here's the pattern:
*******
*****
***
*
**
***
*****
******** |
Forum: Java Jul 18th, 2009 |
| Replies: 0 Views: 940 This code snippet displays any word that the user enters in descending order, each time, removing the last charcter.
So, sravan953 in descending order would be:
sravan953
sravan95
sravan9... |
Forum: Java Jul 18th, 2009 |
| Replies: 0 Views: 1,039 Word: 'trouble'
First vowel encountered: 'o'
Therefore, the Piglatin version: 'oubletray'
(From the first vowel till the last letter, concatenated with the first few letters which(or were not)... |
Forum: Java Jul 18th, 2009 |
| Replies: 0 Views: 1,130 This code snippet accepts a user-defined set of numbers, then accepts those many numbers, and displays the highest and lowest number. |
Forum: Java Jul 15th, 2009 |
| Replies: 1 Views: 1,168 Oh, and I almost forgot; if you end the sentence like "...you?" and search for "you", it will not take into account the last "you" since there is a special character immediately after it.
Let's see... |
Forum: Java Jul 15th, 2009 |
| Replies: 1 Views: 1,168 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. |
Forum: Java Jul 13th, 2009 |
| Replies: 4 Views: 349 Well, yes, Java can be used to create such software...but it commands you to have in depth knowledge of how the Internet works.
Java can be used to even create a program on the lines of a 'packet... |
Forum: Java Jul 12th, 2009 |
| Replies: 4 Views: 349 What 'kind' of intrusion detection system do you want to develop? Java suits most types of development. |
Forum: Java Jul 12th, 2009 |
| Replies: 0 Views: 1,386 A java program which accepts a string from a user, and gives various options to change it case.
Options include:
UPPER CASE
lower case
Sentence case
Title Case
tOGGLE cASE |
Forum: Java Jun 25th, 2009 |
| Replies: 4 Views: 517 I have made a Java prog which will accept a word and a sentence, and then prints the number of times the word occurs in the sentence...
Here is my code:
class check_number_word
{
void... |
Forum: Java Jun 25th, 2009 |
| Replies: 2 Views: 921 Hey guys,
As the title says, I want to know how I can reverse the characters in a string, but retaining the placement of the words as such, here's the code I used:
class reverse
{
void... |
Forum: Java Jun 9th, 2009 |
| Replies: 1 Views: 226 Can somebody tell me the code for:
a-(a^3(power of 3)/a)+a^5/a-a^7/7........n
The code has to contain only for, if, while and other basic statements....please help me! |