myTechpartner: java Join Me On Facebook
Join Me On Facebook

Blogroll

Showing posts with label java. Show all posts
Showing posts with label java. Show all posts

Sunday, 5 May 2013

Application of linkedlist

Polynomial Addition import java.io.*; class node {        int coe,exp;        public node next;        public node(int id,int dd)          {               coe=id;               exp=dd;          } public void displaynode()...

Monday, 8 April 2013

JAVA

Variables• Variables may be tagged as constants (finalkeyword).• Variables may be initialized at creation time– final variables must be initialized at creation time• Objects are variables in Java and must bedynamically allocated with the new keyword.– E.g., a = new ClassA();• Objects are freed by assigning them to null, or whenthey go out of scope (automatic garbage collection).– E.g., a = null; int n = 1;char ch = ‘A’;String s = “Hello”;Long L = new Long(100000);boolean done = false;final double pi = 3.14159265358979323846;Employee joe = new...

Sunday, 7 April 2013

Binary Search

import java.io.*;class binarysearch   {         public static void main(String arg[]) throws Exception            {                  BufferedReader br=new BufferedReader(new InputStreamReader(System.in));                  System.out.println("How many elements");                 ...

Java JDK Installation & Path setting

jdk-6-windows-i586.exe installation step: First all of you must download the  jdk-6-windows-i586.exe you can download this from here:    After downloading 1. run jdk-6-windows-i586.exe 2. After completion of installation 3. path setting for jdk 4. go to C:\Program Files (x86)\Java 5.copy the location  C:\Program Files (x86)\Java\jdk1.6.0\lib 1)right click on my computer select properties     2) ...

Linear search

import java.io.*; class linear { public static void main(String arg[]) throws Exception {   BufferedReader br=new BufferedReader(new InputStreamReader(System.in));   System.out.println("How many elements");   int n=Integer.parseInt(br.readLine());   int a[]=new int[n];   System.out.println("Enter the elements");   for(int i=0;i<n;i++)     {      a[i]=Integer.parseInt(br.readLine());     }    System.out.println("The array is:");   for(int i=0;i<n;i++)  ...

Saturday, 6 April 2013

Java

Here am introducing not a core java program it only sample programs based on various data structure in Java .I hope that all of you following this. Sample programs: 1. Searching 2.sorting 3.Linked list 4.Stack 5.Queue 6.Tree 7.Graph Will be published soon Stay for new updat...

 

Contributors

Online Marketing

Do you Like this Article?

rss twitter facebook