Saturday, September 17, 2011
Wednesday, May 11, 2011
Winning is Everything
Winning is Everything
sometimes winning is everything
take a stand, now and never
choose a high, leave your mark
now or never, kill doubt
stand for something, prove something
make waves, never say die...
live your dream, conquer your fears
take a risk, erase boundaries
beat the odds, trust your instincts
take up a challenge, never give up
prove yourself, own your words
right a wrong, dare to dream
push the limit, play with pride
wake the spirit, go for glory
tougher the better, face your demons
it's your time, taste victory
Because WINNING is EVERYTHING..
..D. Bakrecha
Saturday, April 16, 2011
One line concept
As based on OOP in Java..... DKB
Object: An object is a software bundle of related state and behavior. Software object are often used to model the real world object that we find in everyday life.
Class: A class is a blueprint or prototype from which object are created.
Inheritance: Inheritance provides a powerful and natural mechanism for organizing and structuring our software.
Interface: An interface is a contract between a class and the outside world. When a class implements an interface, it promises to provide the behavior publish by the interface.
Package: A package is a namespace for organizing classes and interfaces in a logical manner. Placing our code into packages makes out large software projects easier to manage.
Wednesday, March 30, 2011
Java Applat 03
//Dharmendra Bagrecha
import java.awt.*;
import java.applet.*;
/*
<APPLET code="cal.class" width=400 height=400>
</Applet>
*/
public class cal extends Applet
{
TextField text1,text2;
//Button c;
public void init()
{
text1 = new TextField(5);
text2 = new TextField(5);
add(text1);
add(text2);
text1.setText("0");
text2.setText("0");
//c = new Button("Calculate");
//c.addActionListener(this);
}
public void paint(Graphics g)
{
int x=0,y=0,z=0;
String s1,s2,s;
g.drawString("Input Number in boxes :",10,50);
try
{
s1 = text1.getText();
x = Integer.parseInt(s1);
s2 = text2.getText();
y = Integer.parseInt(s2);
}
catch(Exception ex){}
z = x + y;
s = String.valueOf(z);
g.drawString("The Sum is :",10,75);
g.drawString(s,100,75);
z = x - y;
s = String.valueOf(z);
g.drawString("The Minus is :",10,85);
g.drawString(s,100,85);
z = x * y;
s = String.valueOf(z);
g.drawString("The Multiply is :",10,95);
g.drawString(s,100,95);
}
public boolean action (Event event,Object object)
{
repaint();
return true;
}
}
import java.awt.*;
import java.applet.*;
/*
<APPLET code="cal.class" width=400 height=400>
</Applet>
*/
public class cal extends Applet
{
TextField text1,text2;
//Button c;
public void init()
{
text1 = new TextField(5);
text2 = new TextField(5);
add(text1);
add(text2);
text1.setText("0");
text2.setText("0");
//c = new Button("Calculate");
//c.addActionListener(this);
}
public void paint(Graphics g)
{
int x=0,y=0,z=0;
String s1,s2,s;
g.drawString("Input Number in boxes :",10,50);
try
{
s1 = text1.getText();
x = Integer.parseInt(s1);
s2 = text2.getText();
y = Integer.parseInt(s2);
}
catch(Exception ex){}
z = x + y;
s = String.valueOf(z);
g.drawString("The Sum is :",10,75);
g.drawString(s,100,75);
z = x - y;
s = String.valueOf(z);
g.drawString("The Minus is :",10,85);
g.drawString(s,100,85);
z = x * y;
s = String.valueOf(z);
g.drawString("The Multiply is :",10,95);
g.drawString(s,100,95);
}
public boolean action (Event event,Object object)
{
repaint();
return true;
}
}
Java Applat 02
//Dharmendra Bagrecha
import java.awt.*;
import java.applet.*;
/*
<APPLET code="Face.class" width=200 height=200>
</Applet>
*/
public class Face extends Applet
{
public void paint(Graphics g)
{
g.drawOval(40,40,120,120);
g.drawOval(57,75,30,20); //eyes
g.drawOval(110,75,30,20);
g.fillOval(68,81,10,10);
g.fillOval(120,81,10,10);
g.drawOval(94,100,15,30); //Nose
g.drawArc(60,105,80,40,180,180); //Mouth
}
}
import java.awt.*;
import java.applet.*;
/*
<APPLET code="Face.class" width=200 height=200>
</Applet>
*/
public class Face extends Applet
{
public void paint(Graphics g)
{
g.drawOval(40,40,120,120);
g.drawOval(57,75,30,20); //eyes
g.drawOval(110,75,30,20);
g.fillOval(68,81,10,10);
g.fillOval(120,81,10,10);
g.drawOval(94,100,15,30); //Nose
g.drawArc(60,105,80,40,180,180); //Mouth
}
}
Monday, October 18, 2010
Happy
Zindagi hai chhoti ,har pal mein khush hu…
Office me khush hu, ghar mein khush hu..
Aaj paneer nahi hai, daal mein hi khush hu,
Aaj gym jane ka waqt nahi, do kadam chal ke he khush hu..
Aaj Dosto ka sath nahi, TV dekh ke hi khush hu..
Ghar ja nahi sakte to phone kar ke hi khush hu…
Aaj koi naraaz hai, uske iss andaz mein bhi khush hu..
Jise dekh nahi sakte uski awaz mein hi khush hu…
Jise paa nahi sakte uski yaad mein he khush hu..
Engineering karne ka socha tha, MCA mein he khush hu…
Laptop na mila to kya, Desktop mein hi khush hu..
beeta hua kal ja chuka hai, usse meethi yaadein hai,unme hi khush hu..
aane wale pal ka pata nahi, sapno mein hi khush hu..
Haste haste ye pal bitaenge, aaj mein hi khush hu..
Zindagi hai chhoti , har pal main khush hu…..!!!
Office me khush hu, ghar mein khush hu..
Aaj paneer nahi hai, daal mein hi khush hu,
Aaj gym jane ka waqt nahi, do kadam chal ke he khush hu..
Aaj Dosto ka sath nahi, TV dekh ke hi khush hu..
Ghar ja nahi sakte to phone kar ke hi khush hu…
Aaj koi naraaz hai, uske iss andaz mein bhi khush hu..
Jise dekh nahi sakte uski awaz mein hi khush hu…
Jise paa nahi sakte uski yaad mein he khush hu..
Engineering karne ka socha tha, MCA mein he khush hu…
Laptop na mila to kya, Desktop mein hi khush hu..
beeta hua kal ja chuka hai, usse meethi yaadein hai,unme hi khush hu..
aane wale pal ka pata nahi, sapno mein hi khush hu..
Haste haste ye pal bitaenge, aaj mein hi khush hu..
Zindagi hai chhoti , har pal main khush hu…..!!!
Feelings
Maana Ke Hum Izhaar Nahi Karte
Matlab Ye Nahi Ke Apka Khayal Nahi Karte
Mayusi Main Beet Jata Hai Wo Din
Jis Din Hum Apko Yaad Nhi Karte.
Matlab Ye Nahi Ke Apka Khayal Nahi Karte
Mayusi Main Beet Jata Hai Wo Din
Jis Din Hum Apko Yaad Nhi Karte.
Subscribe to:
Posts (Atom)
Nathuram Godse - The Man Who Killed Gandhi
Nathuram Godse - The Man Who Killed Gandhi (The Other Side of The Story)
-
General Use 1 Ubuntu 2 openSUSE 3 PingayOS Ubuntu One of the most popular general-use distributions with one of the largest s...
-
Nathuram Godse - The Man Who Killed Gandhi (The Other Side of The Story)
-
The League of Extraordinary Gentlemen is based on a comic-book miniseries by graphic-novel-writing legend Alan Moore and artist Kevi...
