Programs

Following are some programs

Character Operations
Check whether a character is vowel or not
Program to find ascii value of any character

Number operations
Program to check for a prime number
Program to check for an armstrong number
Program to reverse a number
Program to swap two numbers(Method 1)
Program to swap two numbers(Method 2)
Program to print prime numbers within a range
Program to find factorial of a number
Program to find Prime Factors of a number

Program to solve quadratic equation
A temperature converter

String Manipulation
Reverse a string
Reverse a string(Method using loops)
Count occurences of each character in a string
Count number of vowels in a string

Random operations
A toss program
A dice game

Searching in an array
Linear Search
Binary Search





More programs coming soon

9 comments:

  1. Nice Examples

    ReplyDelete
  2. Any examples on how i can create a search function? Thanks :)

    ReplyDelete
  3. Thanks for string reversing programThanks for string reversing program

    ReplyDelete
  4. Wow good job making all of these! You really seem to know what you're doing! Thanks so much... these are helping me study for my computer science class!

    ReplyDelete
  5. Hey vaibhav , like you , even i'm a java fanatic =D . So i have a nice program for you ready :)
    Write a program to play hangman. Note that you must use the basic codes ( NO GUI ) , and you may use a dictionary file if you want to read the words =).

    I started java when i was 17 , and although i was'nt in ICSE board ( which has java before 10th or so) , i lagged in my school, but then a few tutorials here and there helped me , and now i've reached a good level of thinking.
    Try the program i just gave you , its a bit long ( 100 lines is my code ;P ) , but it's easy, should get over in an hour's time of coding..

    ReplyDelete
  6. Thanks for the suggestion
    I have already made a Hangman game
    Yeah you are correct I was from ICSE board and is now in 11th classThanks for the suggestion
    I have already made a Hangman game
    Yeah you are correct I was from ICSE board and is now in 11th class

    ReplyDelete
  7. How can insert ip address in mysql ,using feedback form ?

    ReplyDelete
  8. What r methods for getting user inputs in Java.I just want d list names ??plz help

    ReplyDelete
  9. how can i remove 1st and last line in a text by using java pgm.
    can any one can help me please.

    ReplyDelete