Search Results

Showing results 1 to 18 of 18
Search took 0.00 seconds.
Search: Posts Made By: sravan953 ; Forum: Java and child forums
Forum: Java Aug 26th, 2009
Replies: 0
Views: 1,565
Posted By sravan953
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
Posted By sravan953
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
Posted By sravan953
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
Posted By sravan953
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
Posted By sravan953
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
Posted By sravan953
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
Posted By sravan953
Here's the pattern:

*******
*****
***
*
**
***
*****
********
Forum: Java Jul 18th, 2009
Replies: 0
Views: 940
Posted By sravan953
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
Code Snippet: Piglatin
Views: 1,039
Posted By sravan953
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
Code Snippet: Comparing numbers
Views: 1,130
Posted By sravan953
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
Code Snippet: Word hunt
Views: 1,168
Posted By sravan953
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
Code Snippet: Word hunt
Views: 1,168
Posted By sravan953
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
Posted By sravan953
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
Posted By sravan953
What 'kind' of intrusion detection system do you want to develop? Java suits most types of development.
Forum: Java Jul 12th, 2009
Replies: 0
Code Snippet: Sentence case changer
Views: 1,386
Posted By sravan953
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
Posted By sravan953
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
Posted By sravan953
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
Posted By sravan953
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!
Showing results 1 to 18 of 18

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC