- CTRL+A - Select all items on the current page
- CTRL+D - Add the current page to your Favorites
- CTRL+E - Open the Search bar
- CTRL+F - Find on this page
- CTRL+H - Open the History bar
- CTRL+I - Open the Favorites bar
- CTRL+N - Open a new window
- CTRL+O - Go to a new location
- CTRL+P - Print the current page or active frame
- CTRL+S - Save the current page
- CTRL+W - Close current browser window
- CTRL+ENTER - Adds the http://www. (url) .com
- SHIFT+CLICK - Open link in new window
- BACKSPACE - Go to the previous page
- ALT+HOME - Go to your Home page
- HOME - Move to the beginning of a document
- TAB - Move forward through items on a page
- END - Move to the end of a document
- ESC - Stop downloading a page
- F11 - Toggle full-screen view
- F5 - Refresh the current page
- F4 - Display list of typed addresses
- F6 - Change Address bar and page focus
- ALT+RIGHT ARROW - Go to the next page
- SHIFT+CTRL+TAB - Move back between frames
- SHIFT+F10 - Display a shortcut menu for a link
- SHIFT+TAB - Move back through the items on a page
- CTRL+TAB - Move forward between frames
- CTRL+C - Copy selected items to the clipboard
- CTRL+V - Insert contents of the clipboard
- ENTER - Activate a selected link
- HOME - Move to the beginning of a document
- END - Move to the end of a document
- F1 - Display Internet Explorer Help
there is some good c ,java, sql and vb6 programs,Windows tricks, sms shorthand etc
Friday, January 29, 2010
Internet Explorer Shortcuts Keys
Internet Explorer Shortcuts Keys:
Windows Explorer Shortcuts Keys
Windows Explorer Shortcuts Keys:
- ALT+SPACEBAR - Display the current window’s system menu
- SHIFT+F10 - Display the item's context menu
- CTRL+ESC - Display the Start menu
- ALT+TAB - Switch to the window you last used
- ALT+F4 - Close the current window or quit
- CTRL+A - Select all items
- CTRL+X - Cut selected item(s)
- CTRL+C - Copy selected item(s)
- CTRL+V - Paste item(s)
- CTRL+Z - Undo last action
- CTRL+(+) - Automatically resize the columns in the right hand pane
- TAB - Move forward through options
- ALT+RIGHT ARROW - Move forward to a previous view
- ALT+LEFT ARROW - Move backward to a previous view
- SHIFT+DELETE - Delete an item immediately
- BACKSPACE - View the folder one level up
- ALT+ENTER - View an item’s properties
- F10 - Activate the menu bar in programs
- F6 - Switch between left and right panes
- F5 - Refresh window contents
- F3 - Display Find application
- F2 - Rename selected item
Saturday, January 23, 2010
Windows XP Shortcuts
Windows XP Shortcuts:
- ALT+- (ALT+hyphen) - Displays the Multiple Document Interface (MDI) child window's System menu
- ALT+ENTER - View properties for the selected item
- ALT+ESC - Cycle through items in the order they were opened
- ALT+F4 - Close the active item, or quit the active program
- ALT+SPACEBAR - Display the System menu for the active window
- ALT+TAB - Switch between open items
- ALT+Underlined letter - Display the corresponding menu (e.g. ALT+F for file menu)
- BACKSPACE - View the folder one level up in My Computer or Windows Explorer
- CTRL+A - Select all
- CTRL+B - Bold
- CTRL+C - Copy
- CTRL+I - Italics
- CTRL+O Open an item
- CTRL+U - Underline
- CTRL+V - Paste
- CTRL+X - Cut
- CTRL+Z - Undo
- CTRL+F4 - Close the active document
- CTRL - While dragging Copy selected item
- CTRL+SHIFT - While dragging Create shortcut to selected iteM
- CTRL+RIGHT ARROW - Move the insertion point to the beginning of the next word
- CTRL+LEFT ARROW - Move the insertion point to the beginning of the previous word
- CTRL+DOWN ARROW - Move the insertion point to the beginning of the next paragraph
- CTRL+UP ARROW - Move the insertion point to the beginning of the previous paragraph
- SHIFT+DELETE - Delete selected item permanently without placing the item in the Recycle Bin
- ESC - Cancel the current task
- F1 - Displays Help
- F2 - Rename selected item
- F3 - Search for a file or folder
- F4 - Display the Address bar list in My Computer or Windows Explorer
- F5 - Refresh the active window
- F6 - Cycle through screen elements in a window or on the desktop
- F10 - Activate the menu bar in the active program
- SHIFT+F10 - Display the shortcut menu for the selected item
- CTRL+ESC - Display the Start menu
- SHIFT+CTRL+ESC - Launches Task Manager
- SHIFT = when you insert a CD Prevent the CD from automatically playing
- WIN - Display or hide the Start menu
- WIN+BREAK - Display the System Properties dialog box
- WIN+D - Minimizes all Windows and shows the Desktop
- WIN+E - Open Windows Explorer
- WIN+F - Search for a file or folder
- WIN+F+CTRL - Search for computers
- WIN+L - Locks the desktop
- WIN+M - Minimize or restore all windows
- WIN+R - Open the Run dialog box
- WIN+TAB - Switch between open items
Encouragement from a friend
Encouragement from a friend after trouble
is as welcome as sunshine a storm
WAP TO PRINT VALUE OF MULTIPLE DATA TYPES
/*WAP TO PRINT VALUE OF MULTIPLE DATA TYPES*/
#include<stdio.h>
#include<conio.h>
void main ()
{
int a=10;
float d=40.50;
char ch='A';
double dbl=78.9786;
long lng=7897711;
char nm [10]="Welcome";
clrscr ();
printf ("\nInteger value is %d",a);
printf ("\nFloat value is %.2f",d);
printf ("\nCharacter value is %c",ch);
printf ("\nDouble value is %.4lf",dbl);
printf ("\nLong value is %ld",lng);
printf ("\nString value is %s",nm);
getch ();
}
WAP TO PRINT SERIES FROM 1 TO 10 AND BREAK ON 5
/*WAP TO PRINT SERIES FROM 1 TO 5 AND BREAK ON 3*/
#include
#include
void main ()
{
int a;
clrscr ();
for (a=1;a<=5;a++)
{
if (a==3)
break;
printf ("%d\n",a);
}
getch ();
}
WAP to print ASCII code from 0 to 255
/*WAP to print ASCII code from 0 to 255*/
#include
#include
void main ()
{
int i=0,count=0;
clrscr ();
for(i=0;i<=255;i++){if (count>24)
{count=0;getch();}
else
{printf("%d=%c\n",i,i);
count++;}
}
getch ();
}
Sunday, January 10, 2010
create a folder without name
create a folder without name
To Create a folder without any Name to your system,Do the Following.
1.Create a Folder.
2.Right Click on the folder and click rename.
3.Press alt+255 while performing the second step.
4.Click outside the folder.
5.Now ,a Folder without name has been created
To Create a folder without any Name to your system,Do the Following.
1.Create a Folder.
2.Right Click on the folder and click rename.
3.Press alt+255 while performing the second step.
4.Click outside the folder.
5.Now ,a Folder without name has been created
Windows XP Registry trick
Windows XP Registry trick
Today I teach you some of the very interesting system registry editing tricks......but try these tricks at your own risk....
First of all goto start>run
type regedit.exe
Structure of Windows XP Registry :
When you will open the Windows XP Registry, you will see it's divided into two panes.
On the left side there are Five main Keys as shown below. These can be expanded to
several Sub-Keys, which further has many Sub-Keys.
Before you try out the Tweaks, learn how to Backup and Restore Windows XP Registry.
Types of Registry Backups :
It?s very important that before you do editing you make a backup of the current registry. If you ignore this warning, it might prove deadly for you?so better listen to me
Open your registry:
Go to Start>Run,
type regedit.exe
When you invoke the Export function by clicking File>Export, you are given a choice of different file types that can be saved :
Registration Files (*.reg)
Registry Hive Files (*.*)
Text Files (*.txt)
Win9x/NT 4 Registration Files (*.reg)
All Files
Each one of the different file types above plays an important role in how the data you export is saved. Choosing the wrong type can give you unexpected results. So let me explain you quickly these file types.
Registrations Files:
The Registration Files option creates a .reg file. This is the most well known file format used for backing up the registry.The Registration File can be used in two ways. As a text file it can be read and edited using Notepad outside of Registry Editor. Once the changes have been made and saved, right clicking the file and using the [Merge] command adds the changed file back into the registry. If you make additions to the registry using regedit and then merge the previously saved Registration File, anything that you've added via regedit will not be removed, but changes you make to data using regedit that previously existed in the saved Registration File will be overwritten when it is merged
Registry Hive Files :
Unlike the Registration Files option above, the Registry Hive Files option creates a binary image of the selected registry key. The image file is not editable via Notepad nor can you view its contents using a text editor. However, what the Registry Hive Files format does is create an image perfect view of the selected key and allow you to import it back into the registry to insure any problematic changes you made are eliminated.
Text Files :
This option does just as the name suggests. It creates a text file containing the information in the selected key. It's most useful purpose is creating a record or snapshot of a key at a particular point in time that you can refer back to if necessary. It cannot be merged back into the registry like a Registration File.
Win9x/NT 4 Registration Files :
This option creates a .reg file in the same manner used by the Registration Files option. It's used by previous Windows versions and serves no purpose in XP unless you want to merge a key from XP into a previous version of Windows.
Out of the give above choices , the safest method of backing up registry is to use Registry Hive Files option. No matter what ever you do or goes wrong in editing, importing the image of the key will eliminate all changes.
1. Disable the Autorun Option in your CD Rom Drive:
Open your Registry and navigate to "HK_L_M\system\currentcontrolset\services\cdro m" Change the value of 'Autorun', or create a new DWORD value if it doesn't already exist, and set the value as '0' for Autorun disabled.
2. Disable the Harddisk Lowdiskspace warning in Windows Xp User Key:
"HKEY_CURRENT_USER\Software\Microsoft\Windows\Curr entVersion\Policies\Explorer" and System Key:
"HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Cur rentVersion\Policies\Explorer" create a new DWORD 'NoLowDiskSpaceChecks' and change its value to '1'.
3. Disable the Windows Key:
"HK_L_M\system\currentcontrolset\control\keybo ard layout" Create a new Binary value, or modify the existing value called 'Scancode Map' as shown below. Value:
00 00 00 00 00 00 00 00 03 00 00 00 00 00 5B E0 00 00 5C E0 00 00 00 00
4. View System BIOS Information:
Open Registry and navigate to "HK_L_M\hardware\description\system"
5. Change the Title of Windows Media Player:
"HK_C_USER\software\policies\microsoft\windowsmedi aplayer\" Create a new string value called ' TitleBar' and change text as your wish.
6. Disable Internet access in Network:
Open Registry and make the following changes "KH_C_User\software\microsoft\windows\currentversi on\internetsettings\" Change the value of "Proxyenabled" to 1 and change the value of "proxyserver" and set it to an ip address. Change the value of the ip address and port to "10.0.0.1:
5555"
7. Disable the ability to Right click on the desktop:
"HK_C_User\software\microsoft\windows\currentversi on\policies\explorer\" Create a DWORD "NoViewContextMenu" and change its value to "0" for disabling and "1" for enabling.
8. Hide all items on desktop:
"HK_C_USER\software\microsoft\windows\currentversi on\policies\explorer\" and "HK_L_M\software\microsoft\windows\currentversion\ policies\explorer\" create a new DWORD "NoDesktop" and change its value to "1" You can show all the items in the desktop by chaning the value to "0"
9. Disable the "Change Password" button in windows:
"HKEY_CURRENT_USER\Software\Microsoft\Windows\Curr entVersion\Policies\System" and "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Cur rentVersi on\Policies\System" Create a new DWORD "DisableChangePassword" and change its value to "0" for disabling and "1" for enabling.
10. Disable the "cancel" button or pressing the "Esc" key while logging on to Windows":
"HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\Cu rrentVersion\Run" Create a new string value "NoLogon" and change its value to "RUNDLL32 shell32,SHExitWindowsEx 0"
11. Remove "Log off" from start menu:
"HKEY_CURRENT_USER\Software\Microsoft\Windows\Curr entVersion\Policies\Explorer" and "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Cur rentVersion\Policies\Explorer" Create a new DWORD "NoLogOff" and change its value to "1" for disabling and "0" for enabling.
12. Clear the Recent playlist in Media Player:
Navigate to "HKEY_CURRENT_USER\Software\Microsoft\MediaPlayer\ Player" And clear the "RecentFileList" subkey.
13. Empty temporary Internet files on exit (in Internet Explorer):
"HKEY_CURRENT_USER\Software\Microsoft\Windows\Curr entVersion\Internet Settings\Cache" and "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Cur rentVersion\Internet Settings\Cache" Create a new DWORD "Persistent" and change the value to "0" for emptying and "1" to remove this option.
14. Clear the Internet Explorere typed addresses history:
"HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\TypedURLs" And delete the subkeys.
15. Remove recent documents from start menu:
"HKEY_CURRENT_USER\Software\Microsoft\Windows\Curr entVersion\Policies\Explorer" and "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Cur rentVersion\Policies\Explorer" Create a new DWORD "NoRecentDocsMenu" and change its value to "1".
16. Remove Network connections from start menu:
"HKEY_CURRENT_USER\Software\Microsoft\Windows\Curr entVersion\Policies\Explorer" and "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Cur rentVersion\Policies\Explorer" Create a new DWORD "NoNetworkConnections" and change its value to "1".
17. Remove My documents from start menu:
"HKEY_CURRENT_USER\Software\Microsoft\Windows\Curr entVersion\Policies\Explorer" and "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Cur rentVersion\Policies\Explorer" Create a new DWORD "NoSMMyDocs" and change its value to "1".
18. Remove My pictures from start menu:
"HKEY_CURRENT_USER\Software\Microsoft\Windows\Curr entVersion\Policies\Explorer" and "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Cur rentVersion\Policies\Explorer " Create a new DWORD "NoSMMyPictures" ad change its value to "1".
19. Remove My music fro start menu:
"HKEY_CURRENT_USER\Software\Microsoft\Windows\Curr entVersion\Policies\Explorer" and "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Cur rentVersion\Policies\Explorer" Create a new DWORD "NoStartMenuMyMusic" and change its value to "1".
20. Reboot windows after crash:
"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl" Create a new DWORD "AutoReboot" and change its value to "1".Restart the machine for the effect to take place.
21. Disable the use of MSDos:
User Key:
"HKEY_CURRENT_USER\Software\Microsoft\Windows\Curr entVersion\Policies\WinOldApp" and System Key:
"HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Cur rentVersion\Policies\WinOldApp" Create a new DWORD "Disabled" and set its value to "1". Change it to "0" for enabling.
22. Enable Directory completion in MSDos prompt:
User Key:
"HKEY_CURRENT_USER\Software\Microsoft\Command Processor" and System Key:
"HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor" Create a new DWORD "PathCompletionChar " and set it to equal the hex value of the required control character.
23. Quick edit the command prompt:
User Key:
"HKEY_CURRENT_USER\Console" and System Key:
"HKEY_USERS\.DEFAULT\Console" Create a new DWORD "QuickEdit" and set its value to "1" for enabling and "0" for disabling.
24. Disable Registry editing:
"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\Curr entVersion\Policies\System" Create a new DWORD "DisableRegistryTools" and change its value to "0" for allowing Regedit and "1" for disabling it.
25. Disable task scheduler:
" HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Curr entVersion\RunServices" Delete the value from "SchedulingAgent". Usually its value is set to "'mstask.exe".
26. Remove My computer from desktop and start menu:
User Key:
"HKEY_CURRENT_USER\Software\Microsoft\Windows\Curr entVersion\Policies\NonEnum" and System Key:
"HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Cur rentVersion\Policies\NonEnum" Create "{20D04FE0-3AEA-1069-A2D8-08002B30309D}" and change its value to "1" for removing. Change its value to "0" for showing.
27. Show Windows version on desktop:
User Key:
"HKEY_CURRENT_USER\Control Panel\Desktop" Create a new DWORD " PaintDesktopVersion" and change its value to "1" for showing and "0" for removing.
28. Remove My documents from desktop:
Windows 95, 98 and Me "HKEY_CURRENT_USER\Software\Classes\CLSID\{450D8FB A-AD25-11D0-98A8-0800361B1103}\ShellFolder" Windows NT, 2000 and XP "HKEY_CURRENT_USER\Software\Microsoft\Windows\Curr entVersion\Explorer\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}\ShellFolder" Modify the value called "Attributes" as "0xf0500174" to hide or "0xf0400174" to show.
29. Disable Scan disk after improper shutdown:
" HKEY_LOCAL_MACHINE\System\CurrentControlSet\Contro l\FileSystem" create a new DWORD "DisableScandiskOnBoot" and change its value to "01" for disablng and "00" for enabling.
30. Automatically end Hung programs:
" HKEY_CURRENT_USER\Control Panel\Desktop" and "System Key:
[HKEY_USERS\.DEFAULT\Control Panel\Desktop" Modify the value of "AutoEndTasks" to "1".
Friday, January 8, 2010
Create your own special characters in Windows XP
Create your own special characters in Windows XP
1. open the Run dialog box.
2. Type eudcedit in the Open text box and click OK.
3. When the Private Character Editor launches
4. create your characters.
5. When you finish, select the Save Character comma
6. open the Run dialog box.
7. Type charmap in the Open text box and click OK.
8. When the Character Map appears, select the Font drop-down list and select All Fonts
9. Select your character, click the Select button, and then click the Copy button.
You can now paste your font character into any document that you want.
1. open the Run dialog box.
2. Type eudcedit in the Open text box and click OK.
3. When the Private Character Editor launches
4. create your characters.
5. When you finish, select the Save Character comma
6. open the Run dialog box.
7. Type charmap in the Open text box and click OK.
8. When the Character Map appears, select the Font drop-down list and select All Fonts
9. Select your character, click the Select button, and then click the Copy button.
You can now paste your font character into any document that you want.
Change My Computer Properties
Change My Computer Properties
Open notepad Now type the following text in notepad.
[General]
Manufacturer= Mohd. Arshi Khan
Model= SEO Expert
[Support Information]
Line1=My Computer Properties
Line2= Change My Computer Properties
Now save this notepad file in c: /windows/system32 folder with file name, OEMINFO.INI.
Open notepad Now type the following text in notepad.
[General]
Manufacturer= Mohd. Arshi Khan
Model= SEO Expert
[Support Information]
Line1=My Computer Properties
Line2= Change My Computer Properties
Now save this notepad file in c: /windows/system32 folder with file name, OEMINFO.INI.
- Go to Desktop and Press F5 for Refresh
- Right click on My Computer and open Properties.
Thursday, January 7, 2010
WAP to calculate square root
/*WAP to calculate square root*/
import java.lang.*;
class sqrt
{
public static void main(String arg[])
{
double n,x;
x=4;
n = Math.sqrt(x);
System.out.println("Sqrt Root is "+ n);
}
}
WAP to calculate square
/*WAP to calculate square*/
import java.lang.*;
class sqr
{
int n,sqr;
sqr(int n1)
{
n=n1;
}
void calculate()
{
sqr=n*n;
}
void display()
{
System.out.println("squar=" + sqr);
}
}
class demo_sqr
{
public static void main(String arg[])
{
sqr s1=new sqr(3);
s1.calculate();
s1.display();
}
}
wap to construct rectengle class with "this" pointer
/*wap to construct rectengle class with "this" pointer*/
import java.lang.*;
class rectangle
{
int l,b;
rectangle(int a,int c)
{
this.l=a;
this.b=c;
}
void display()
{
System.out.println("length is="+l);
System.out.println("breadth is="+b);
}
}
class demo_thisrec
{
public static void main(String arg[])
{
rectangle r1=new rectangle(3,4);
r1.display();
}
}
wap to construct rectengle class
/*wap to construct rectengle class having data member breadth&
length & make constractor*/
import java.lang.*;
class rectangle
{
int l,b;
rectangle(int a,int c)
{
l=a;
b=c;
}
void display()
{
System.out.println("length is="+l);
System.out.println("breadth is="+b);
}
}
class demo_rectangle
{
public static void main(String arg[])
{
rectangle r1=new rectangle(3,4);
r1.display();
}
}
WAP to check no. is prime/not
/*WAP to check no. is prime/not*/
import java.lang.*;
class prime
{
int num,count;
prime(int num1)
{
num=num1;
count=0;
}
void calculate_prime()
{
for(int i=1;i{
if(num%i==0)
count++;
if(count>2)
break;
}
}
void display()
{
if(count>2)
System.out.println("not prime " + num);
else
System.out.println("prime " + num);
}
}
class demo_prime
{
public static void main(String arg[])
{
prime p1=new prime(5);
prime p2=new prime(21);
p1.calculate_prime();
p1.display();
p2.calculate_prime();
p2.display();
}
}
wap to calculate factorial
/*wap to calculate factorial*/
import java.lang.*;
class factorial
{
int num;
factorial(int a)
{
num=a;
}
int fact(int m)
{
if(m==0)
return(1);
else
return(m*fact(m-1));
}
void display()
{
int f;
f=fact(num);
System.out.println("factorial is="+f);
}
}
class demo_factorial
{
public static void main(String arg[])
{
factorial f1=new factorial(3);
f1.display();
}
}
Monday, January 4, 2010
Run Commands SHORTCUT KEYS for XP,Vista,Windows7
Run Commands SHORTCUT KEYS for XP,Vista,Windows7
- compmgmt.msc - Computer management
- devmgmt.msc - Device manager
- diskmgmt.msc - Disk management
- dfrg.msc - Disk defrag
- eventvwr.msc - Event viewer
- fsmgmt.msc - Shared folders
- gpedit.msc - Group policies
- lusrmgr.msc - Local users and groups
- perfmon.msc - Performance monitor
- rsop.msc - Resultant set of policies
- secpol.msc - Local security settings
- services.msc - Various Services
- msconfig - System Configuration Utility
- regedit - Registry Editor
- msinfo32 - System Information
- sysedit - System Edit
- win.ini - windows loading information(also system.ini)
- winver - Shows current version of windows
- mailto: - Opens default email client
- command - Opens command prompt
- appwiz.cpl - Add/Remove Programs control
- timedate.cpl - Date/Time Properties control
- desk.cpl - Display Properties control
- findfast.cpl - FindFast control
- fonts - Fonts Folder control
- inetcpl.cpl - Internet Properties control
- main.cpl - Mouse Properties control
- main.cpl keyboard - Keyboard Properties control
- mmsys.cpl - Multimedia Properties control
- netcpl.cpl - Network Properties control
- password.cpl - Password Properties control
- printers - Printers Folder control
- mmsys.cpl sounds - Sound Properties control
- sysdm.cpl - System Properties control
Sunday, January 3, 2010
WAP to check no. is armstrong/not
/*WAP to check no. is armstrong/not*/
import java.lang.*;
class arms
{
int num,i,rem,sum=0,status,b;
arms(int a)
{
num=a;
}
void calculate()
{
i=num;
while(i>0)
{
rem=i%10;
b=rem*rem*rem;
sum=sum+b;
i=i/10;
}
if(sum==num)
status=1;
else
status=0;
}
void display()
{
if(status==1)
System.out.println("ARMSTRONG"+sum);
else if(status==0)
System.out.println("not Armstrong"+sum);
}
}
class demo_arms
{
public static void main(String arg[])
{
arms a1=new arms(153);
a1.calculate();
a1.display();
}
}
WAP to check palendron
/*WAP to check palendron*/
import java.lang.*;
class palindrome
{
int num,i,rem,rev=0,status;
palindrome(int a)
{
num=a;
}
void calculate()
{
i=num;
while(i>0)
{
rem=i%10;
rev=rev*10+rem;
i=i/10;
}
if(num==rev)
status=1;
else
status=0;
}
void display()
{
if(status==1)
System.out.println("palindrome"+rev);
else if(status==0)
System.out.println("Not palindrome"+rev);
}
}
class demo_palendron
{
public static void main(String arg[])
{
palindrome p1=new palindrome(231);
p1.calculate();
p1.display();
}
}
WAP to check no. is even/odd
/*WAP to check no. is even/odd*/
import java.lang.*;
class evenodd
{
int num,status;
evenodd(int num1)
{
num=num1;
}
void calculate_evenodd()
{
if(num%2==0)
status=1;
else
status=0;
}
void display()
{
if(status==1)
System.out.println("no. is EVEN" + num);
else
System.out.println("no. is ODD" + num);
}
}
class demo_evenodd
{
public static void main(String arg[])
{
evenodd eo1=new evenodd(6);
evenodd eo2=new evenodd(21);
eo1.calculate_evenodd();
eo1.display();
eo2.calculate_evenodd();
eo2.display();
}
}
WAP to display welcome
/*WAP to display welcome*/
import java.lang.*;
class name
{
public static void main(String arg[])
{
System.out.println("WELCOME");
}
}
Subscribe to:
Posts (Atom)
How to earn online
How to earn online:
Step - 1 :
signup for PayPal, to recieve your online earning
click here:
https://www.paypal.com/in/mrb/pal=CZ7224TZBMCBL
step - 2 : Singup these 4 sites & earn & enjoy! Read site to know how to earn.
1. trekpay
Earn up to $0.02 (2 cents) per click.
http://www.trekpay.com/?ref=34690
2. neobux
Earn up to $0.02 (2 cents) per click.
Click here:
http://www.neobux.com/?r=Moneyearner786
Step - 1 :
signup for PayPal, to recieve your online earning
click here:
https://www.paypal.com/in/mrb/pal=CZ7224TZBMCBL
step - 2 : Singup these 4 sites & earn & enjoy! Read site to know how to earn.
1. trekpay
Earn up to $0.02 (2 cents) per click.
http://www.trekpay.com/?ref=34690
2. neobux
Earn up to $0.02 (2 cents) per click.
Click here:
http://www.neobux.com/?r=Moneyearner786