.
Home About-us Privacy Policy Contact-us Services

Wednesday, March 22, 2017

Java - Static Method Program Example - Allprogramexample

By With No comments:
Static Program Example in Java
 class stm
{
static int i=10;       
static void add(int a,int b)      //static method
{
System.out.println("sum is "+(a+b));
}}
class static1
{
public static void main(String aa[])
{
stm.add(30,51);                        //calling static method
int i=stm.i;                             //accessing the the vaiable
System.out.println("sum is "+i);
}
}


Read More

Tuesday, May 24, 2016

c++ Program Examples For Beginner's

By With No comments:

SO. NO
                                 PROGRAM NAME
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

24

25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40

Read More

Monday, May 23, 2016

Design a Glowing Button in Photoshop - Allprogramexample

By With No comments:
Creating Buttons and different type of shape is easy in photoshop. There are different type of tutorials related buttons and shape.Given below easy tutorial to create Glow effect.

1.Open the Photoshop and click the new in file menu  .and insert the height and width such as.

2.Insert the background color Black Such as #000000..
3.Draw the circle .such as



3.Click the Layer Menu and select the layer style .and click the inner glow.  such as


Read More

Friday, October 23, 2015

Java - Method Overriding Program Example - Allprogramexample

By With No comments:
Method Overriding Program
class person
{
String name="Allprogramexample";
int age =23;
void result()
{
System.out.println("name is"+name+"age is"+age);
}}
class student extends person
{
int marks=1800;
void result()                      //method overrading
{
System.out.println("name is"+name+"age is"+age+"marks is "+marks);
}}
public class mov
{
public static void main(String aa[])
{
student obj1=new student();
obj1.result();
}}


Read More

Java - if else Program Example - Allprogramexample

By With No comments:
If else Program in Java
class ie
{
public static void main (String aa[])
{
int a=20;
{
if(a>100)
System.out.print("a is grater then");
else
{
System.out.print("a is Lesser then");
}
}
}
}


Read More

Saturday, October 17, 2015

Java - For loop Program Example - Allprogramexample

By With No comments:
For Loop Program
class for1
{
public static void main(String aa[])
{
 for(int i=0 ; i < 5 ; i++)
{
System.out.println("i is : " + i);
 }
}}


Read More

Java - Do While Program Example - Allprogramexample

By With No comments:
Do while Program Example
class dow1
{
public static void main(String aa[])
{
int a=0;
do
{
System.out.println("Result is "+a);
a++;
}
while(a<10);
}}



 
Read More

Friday, October 16, 2015

Java - while program example - Allprogramexample

By With No comments:
While program example
class wl
{
public static void main(String aa[])
{
int a=1;
while(a<=10)
{
System.out.print("REsult is "+a);
a++;
System.out.print("\n");
}
}
}


Read More

Java - Cube program Example - Allprogramexample

By With No comments:
Cube Program Example
class cube
{
int len;
int width;
int hei;
int volum()   //Method Definaton
{
return(len*width*hei);       
}
}
class cube2
{
public static void main(String aa[])
{
cube cc=new cube();
cc.len=60;
cc.width=20;
cc.hei=10;
int vol=cc.volum();  //Calling a method
System.out.println("The Volum of cube "+vol);
}}


Read More
Home About-us Privacy Policy Contact-us Services
Copyright © 2014 All Programs Examples | All Rights Reserved. Blogger Templates Download Blogger Templates