Wednesday, February 29, 2012
Interface , Try Catch, Multithreading
Code link of Netbeans project
http://tinyurl.com/cse412lab5
http://bit.ly/yWEE9G
This link contain the example of Interface , Try Catch, Multithreading
Visit the following site to ask any question about coding
http://stackoverflow.com/
Wednesday, February 22, 2012
Polymorphism Abstract Vector
Code link of Netbeans project
tinyurl.com/cse412lab4
This link contain the example of Polymorphism, Abstract and Vector
Project
Your Project should have following component
1. Polymorphism, Abstract
2. GUI
3. Networking
4. Multithreading
tinyurl.com/cse412lab4
This link contain the example of Polymorphism, Abstract and Vector
Project
Your Project should have following component
1. Polymorphism, Abstract
2. GUI
3. Networking
4. Multithreading
Wednesday, February 8, 2012
rice (CSE412lab3 p3)
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package cse412lab3;
/**
*
* @author LynAs
*/
public class rice extends Food{
public void eating(){
System.out.println("I am eating rice");
}
}
Food (CSE412lab3 p2)
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package cse412lab3;
/**
*
* @author LynAs
*/
public class Food {
public void method1(){
System.out.println("This is a food method");
}
public void eating(){
System.out.println("I am eating.....");
}
}
CSE412lab3
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package cse412lab3;
/**
*
* @author LynAs
*/
public class CSE412lab3 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
Integer num1=new Integer(20);
String name1=new String("25");
int x=50;
System.out.println(num1.toString());
int res=0;
res = x+ Integer.parseInt(name1);
System.out.println(res);
System.out.println(num1.getClass());
String name2=new String("Cse 412 Lab");
System.out.println(name2.charAt(2));
System.out.println(name2.compareTo("cse"));
System.out.println(name2.concat(" is fun"));
System.out.println(name2.contains("Cse"));
System.out.println(name2.hashCode());
System.out.println(name2.length());
System.out.println(name2.toUpperCase());
rice robj1=new rice();
robj1.method1();
robj1.eating();
}
}
CSE412lab3Recap p1
package cse412lab3recap;
/**
*
* @author LynAs
*/
public class CSE412lab3Recap {
public static void main(String[] args) {
Calculator cObj1=new Calculator();
cObj1.method1();
//cObj1.method2(6, 5);
//cObj1.method2(2, "Max");
//System.out.println(cObj1.summationOfNnumbers());
}
}
Subscribe to:
Posts (Atom)