Comment

Nikhil
Please provide right information,
March 3, 2010 at 3:34 PM

1^1 in java does return 0 not 1.
View All Comments | View Tutorial
Related Tutorial and Articles
Core Java

Java XOR operator
Java XOR operator       Java makes available the bitwise operators like AND, OR, XOR, and NOT. .../master-java/java-bitwise-xor.shtml http:/www.roseindia.net/software-tutorials

Java Tips and Examples

Java Bitwise XOR "^" Operator
Java Bitwise XOR "^" Operator       In this section, you will learn how to use bitwise XOR... of  bitwise XOR "^" operator. Description of code: The bitwise XOR

Development process Questions

xor operator not working correctly with array
link http://www.roseindia.net/java/master-java/java-bitwise-xor.shtml   .../java/master-java/java-bitwise-xor.shtml...xor operator not working correctly with array  main { int a[2

Java Beginners

bitwise operators
://www.roseindia.net/java/master-java/java-bitwise-or.shtml...bitwise operators  include<stdio.h> int main(){ short x... this program give the answer as 7  hi friend, Bitwise OR (|) operator returns 1

Java Tips and Examples

Java XOR Operator
. Following example will show how to use "^" operator in Java. XOR is a binary operator that is evaluated from left to right. Example of Java XOR... Bitwise XOR (exclusive or) "^" is a Java operator

Java Beginners

bitwise operators
bitwise operators  Write short note on bitwise operators of Java.   Please visit the following links: http://www.roseindia.net/java/java-tips/data/expressions/slides-bitops.shtml http://www.roseindia.net/java/java

Java Beginners

right and left shift operators
by the number of bits specified by its right operand. For more information, please go through the following links: http://www.roseindia.net/java/master-java/java-left-shift.shtml http://www.roseindia.net/java/master-java/java-right

Java Beginners

please provide code - Java Beginners
please provide code  provide code to snake game in J2SE

General

Bitwise and Bit Shift Operators
Bitwise and Bit Shift Operators       In Java the bitwise and bit shift operators are used... OR (^): The Bitwise exclusive OR (^) performs the exclusive or (XOR) operation i.e.

General

Java Bitwise Operator
/master-java/bitwise-bitshift-operators.shtml      ... Java Bitwise Operator      ... (or characters). However in Java, the bitwise and bit shift operators are used

General

Master Java In A Week
Master Java In A Week Master Java Programming Language in a week. This tutorial is good for beginners in Java and it will teach you the basics... in Java. Using for, while and do-while loops is not always the right idea to use

General

Java Right Shift ">>" Operator
Java Right Shift ">>" Operator       In this section, you will learn how to use right shift ">>"operator in Java. The Java programming language has

Java Beginners

Please provide coding for following problem
Please provide coding for following problem  Please provide the coding for the following problem: You will write a java program that will read data from a file. The data in the file will be: John Doe 75 Joe Blow 65 Mary Smith 80

JSP Servlet Questions

Please provide the java code for the given program.
Please provide the java code for the given program.   We need an application for managing an educational institute. That application should provide...: StudentAddr: StudentDob: Email: Course ALL Java C C++ Oracle Fees: Duration: Faculty

Java-Tutorials

Bitwise Operators in java 7
In this section you will learn about the Bitwise Operators. This is one type of operators

Java Beginners

TRIANGLE OF *S AT THE BOTTOM RIGHT!!! - Java Beginners
with the right angle at the bottom-right." PROBLEM: Have tried so many times to make the triangle at the right side but couldn't do so. Can you please solve...TRIANGLE OF *S AT THE BOTTOM RIGHT!!!  My Question is to : "Write

Java Tips and Examples

Java Bitwise NOT "~" Operator
Java Bitwise NOT "~" Operator       In this section, you will learn how to use bitwise NOT "~" operator in Java. The Java programming language has operators

Java Tips and Examples

Java Bitwise AND " &" Operator
Java Bitwise AND " &" Operator   ... bitwise AND " &" operator in Java. The Java programming language has operators that perform bitwise operations. In the example below we have shown

IDE Questions

information
information  hello sir i installed java1.5 s/w but java editor not displaying. i wants to create a desktop icon for this application.without notepad i wants to write code in code window like c,cpp.plz help me. replay

Java Tips and Examples

Java Bitwise OR " |" Operator
Java Bitwise OR " |" Operator       In this section, you will learn how to use bitwise OR "|" operator in Java. The Java programming language has operators that perform

Programming Tutorials

Master java in a week
;    Class Declaration: Class is the building block in Java...; The main method is the entry point in the Java program and java program can't run... is always first thing that is executed in a java program. Here is the main method

Java Beginners

provide source - Java Beginners
provide source  please provide code for this program Write a program to download a website from a given URL. It must download all the pages from that website. It should take the depth of retrieval from the user input. All

Java Beginners

Please Reply - Java Beginners
Please Reply  Hi, I have a form these fields r prod_id,prod_name... for insertion form This is stored in prod_master Steps 1:-User fills all data manullay but i want vend_name take from vend_master table but in prod_master table

Swing AWT

provide code - Swing AWT
provide code  Dear frnds please provide code for two player CHESS...); } } ------------------------------------- visit for more information. http://www.roseindia.net/java/example/java/swing/ Thanks

Java Tips and Examples

Unsigned right shift ">>>" Operator
unsigned right shift ">>>"operator in Java. The Java programming language has operators that perform bitwise operations. In the example below we have shown... Unsigned right shift ">>>" Operator

Java Beginners

provide me code - Java Beginners
provide me code  can any body provide code for SNAKE XENZIA game in NOKIA mobile? please urgently

Java Beginners

Left and Right panel in JSP - Java Beginners
Left and Right panel in JSP  Hello Friends, Please help me to showing right and left frame on my JSP page. I want to showing fix left frame which... on frame2 means in frame right. Give suggest me solution which support my

Java Beginners

To provide Help Option - Java Beginners
To provide Help Option  hi i am writing one small application there i wanted to provide "Help" button to user.From there they will be geting how... theire own help article writen..." how we can provide our Help writen for our

Core Java

Java bitwise OR "|" operator
Java bitwise OR "|" operator In this section you will learn about how to use" |" operator in java. Java provides six types of operators.... Code here displays the use of "|" operator in Java: A simple

Java Beginners

PLEASE Help me write a Java program which will store, manipulate, and print student registration information.
PLEASE Help me write a Java program which will store, manipulate, and print student registration information.  HERES TEH QUESTION - I AM MISSING SOME..., ADDRESS AND ADMISSIONS CLASS PLEASE HELP!!! Write a Java program which

Java Beginners

are my declared varibles right - Java Beginners
information on java visit to : http://www.roseindia.net/java/ Thanks

Java Beginners

to update the information
update the information   sir, i am working on library mgt project. front end is core java and backend is ms access.i want to open,update the information through form.please send me code earliar.   Please visit

Java Beginners

core java - Java Beginners
core java  write a program to add two numbers using bitwise operators... BitWiseOpsTest { public static int add(int x, int y) { int xor, and, temp; and = x & y; xor = x ^ y; while(and != 0 ) { and <<= 1; temp = xor

Java Beginners

Plz provide me all the material for Java
Plz provide me all the material for Java  Plz provide me all the material for Java   Please go through the following link: Java Tutorials

Java Code Examples

Sending and receiving information to the UDP Client in Java
will provide send and receive information by the UDP client in Java. UDP client sends information or messages to UDP server and it collects some messages from... Sending and receiving information to the UDP Client in Java

Spring Framework Questions

java programming please - Spring
java programming please  please i want your help :-( using JCreator program Your local bank has contracted you to design a Java... information Please Enter Your Name Please Enter your current balance Please

Java Beginners

Student Information System in Java - Java Beginners
Student Information System in Java  Hello Sir, I want Mini Java Project for Student Admission System.  Hi Friend, Can you provide us details regarding your project like student admission form, faculty information

Java Beginners

java please please help
java please please help  Dear Friends plz help me to complete this program import java.util.*; public class StringDemo { static String a="{a=100;b=200;c=300}"; public static void main(String args

Java Beginners

how to print from right to left in java????
how to print from right to left in java????   can anyone pls tell how to print from right to left in java

Java Beginners

Information - Java Beginners
Information on Java Technologies   Need information on Programming technologies and specifically on Java

Java Beginners

help please - Java Beginners
(); System.out.println("Your file has been written"); } } For more information on Java visit to : http://www.roseindia.net/java Thanks

Java Beginners

java
); //out put is = 8  Hi Friend, Output: 8 128 For more information, visit the following links: http://www.roseindia.net/java/master-java/java-left-shift.shtml http://www.roseindia.net/java/master-java/java-right-shift.shtml

General

Change Background of Master Slide Using Java
Change Background of Master Slide Using Java  ... to create a slide then change background of the master slide. In this example we are creating a slide master for the slide show. To create slide show we

WebSevices Questions

Internet and Web related questions for Web Master.
Internet and Web related questions for Web Master.   Explain the difference between the Internet and Web. What are Web browsers? Explain the two main... is Java? What are the applications of Java that you can use for Web designing

Java Beginners

java program.. the question is scary ...please help - Java Beginners
java program.. the question is scary ...please help  Modify the Lexer... 3. Include line number information within tokens for subsequent error reporting... program left: 0 right: 6 line: 1 { left: 8 right: 8: line: 1 int

SQL Question

Please help me out
or Eclipse), you should develop a Java application to provide these services...Please help me out    Description* You are hired to develop a laptop inventory information system for Sheridan College in order to keep track

Java Beginners

Am i convetrting the code right ? - Java Beginners
Am i convetrting the code right ?  C# private void button...; sp.WriteLine("Hello World!"); sp.Close();} Java Enumeration pList... in java is approximately doing the samething but the LED does not blink. thanks

Java Beginners

java - Java Beginners
with description. Please visit for more information. http://www.roseindia.net/java/master-java/java-a-general-purpose-languaage.shtml http://www.roseindia.net/java/master-java/index.shtml http://www.roseindia.net/java/master

Java Beginners

please send code - Java Beginners
please send code  hai friends plese provide code for fallowing program(CORE JAVA) i am taking string from commandprompt like 'AC2E4T45hj789' now the requirement is to print only numbers like 2 4 45 789 if any string we

Java Beginners

to update the information
to update the information   sir, i am working on library mgt project. front end is core java and backend is ms access.i want to open,update the information through form.please send me code earliar

Java Beginners

how the streams provide synchronization - Java Beginners
how the streams provide synchronization  How the java streams provides synchronization

JDBC

Join tables with the NATURAL RIGHT JOIN operation
the tables through the NATURAL RIGHT JOIN operation. See detail information given... Join tables with the NATURAL RIGHT JOIN operation... the NATURAL RIGHT JOIN operation of table in a specific database. This operation join

Core Java

Java "&" operator
"&" operator in java. Java provide six types of operators: among... in java. Bitwise operator work on bit and perform bit by bit operation...; operator in Java: A simple example using Bitwise (AND) "&"

Java-Tutorials

Java Courses
RoseIndia Java Courses provided online for free can be utilized by beginners in Java anywhere in the world. They can use this course to master Java language and become Java developers. The courses provided here cover every topic

Java Beginners

New to Java Please help
New to Java Please help  Hi I need help, can some one help me.... Thanks!   If you are new in java, then you need to learn core java concepts.So go through the following link: Core Java Tutorials Here, you will find

Java Beginners

provide me the program for that ques.
provide me the program for that ques.  wtite a program in java there is a class readchar.the functionality of this class is to read a string from the console and display the characters of that string on the console.

Java Beginners

Please Send - Java Beginners
Please Send  Hi, this is perfect ur sending code I want java script coding Steps:-If user click on refresh button then page iage will be refresh Thanks  Hi friend, Thanks vineet

Java Beginners

please send me javascript validation code - Java Beginners
please send me javascript validation code  hallo sir , please send me java script code for this html page.since i want to do validation.i am a new user in java ....please send me its urgent

General

Orientating Components Right to Left,java newsletter,java,tutorial
or right to left. For the components orientation we uses Layout Manager..., right, left and center. The BoxLayout arranges the components either in single...) { super(componentOrientation.isLeftToRight() ? "Left" : "Right"); add

Java Interview Questions

java
java  what are abstract methods   Please visit the following link: http://www.roseindia.net/java/master-java/abstract-class.shtml

Java Beginners

Java Help Please
Java Help Please  I can't seem to figure out how to make this program, can some one help me please? It is due soon!! 4) Write a program that will take an input (Date object will contain fields for the month, day, and year - all

Java Beginners

PLEASE HELP WITH MY JAVA
PLEASE HELP WITH MY JAVA  Hey my name is Gavin and im a student... please help!!!!!!!! it is a for-loop question: Display the first 5 multiples... and average If u can please help...

MySQL

Mysql XOR
provide you a demonstrative example below: Query to use xor operation Truth Table... Mysql XOR       Mysql XOR returns you the output on the basis of condition specified in input

Java Beginners

Java Variables Help Please!
Java Variables Help Please!  Hi, I just started with java and i need help with my school project, this is it so far: import java.util.*; public class ProjectCS { public static void main(String[] args) { welcome

Java Beginners

please help me to give code - Java Beginners
please help me to give code  Write a program that prints an n-level...(); } } } ---------------------------------- read for more information, http://www.roseindia.net/java

Java Beginners

please - Java Beginners
please   it did run in one of my friend computer but not mine bcoz she has editor iam running my code using Dos so can you send me the softwere of a good editor thanks for ur help my email is alaa-sg@hotmail.com

Java3D Questions

help in java please
help in java please  Define a class named Money whose objects represent amounts of U.S. money. The class will have two instance variables of type int for the dollars and cents in the amount of money. Include a constructor

Java Beginners

please help java
please help java  How to Change the background color of the dashboard to black with an opacity of 0.6. Change the opacity of the images in the dashboard to 0.5 before the dashboard slides out. Change the opacity

Java Beginners
Java Beginners

java
with an abstract keyword. For more information, visit the following links: http://www.roseindia.net/help/java/a/java-abstract-class.shtml http://www.roseindia.net/java/master-java/abstract-class.shtml

Java Beginners

please help me to give code - Java Beginners
(); } } } ------------------------------- read for more information, http://www.roseindia.net/java/beginners/read...please help me to give code  Write a program that reads a file named famous.txt and prints out the line with the longest length. In the case

Java Beginners

please help me here.. - Java Beginners
please help me here..  ..uhhmm.. im a little bit new to java and i go confused on my case study.. import java.lang.*; import java.io.*; public...."); } } } ---------------------------------------------------- Read for more information, http://www.roseindia.net/java

Java Beginners

please help
please help  please send me the code of dynamic stack in java without using the built in functions

Java Magazine Questions

how to access windows registry information using java?
how to access windows registry information using java?  can any one help me how to access windows registry information using java

Servlets

Natural Right Join
Natural Right Join      ... will be natural right join.  To join the tables firstly it is important to make a connection between the java class and the database. In our program we

Hosting Tutorial

How to find web hosting,find web hosting,right web host
Finding the Right Web Host For the success of online business its very important to host your site on right web hosting servers and without paying very high fees. In this article I will provide some tips to find the right web host

Java Beginners

urgent...pleAse help me.....please!
urgent...pleAse help me.....please!  please help me urgent! how can i do dictionary with the use of array code in java, where i will type the word then the corresponding meaning for that word will appear...thanks

Java Beginners

Information Technology Courses
Information Technology Courses  Hi, Which all good Information Technology Courses available for Java programmers? Thanks   Hi, There are many technologies available in Java. these Information Technology Courses

Java Beginners

Courses in Information Technology
Courses in Information Technology  What are the Courses in Information Technology for beginner? How to learn programming and become a good programmer... you in becoming a good programmer. You may learn: a) Core Java b) Advance Java

Java Interview Questions

Why does Java provide both abstract class as well as interface
Why does Java provide both abstract class as well as interface  why does java have both abstract class as well as interface? what is the need or importance of having both

Java Beginners

Java Program(Please reply asap)
Java Program(Please reply asap)  Find out the ways in which numbers can be added to get the same result Example:- 10 1+9=10 1+2+3+4=10 1+9=10

Java Beginners

please send me java script for html validation - Java Beginners
please send me java script for html validation  please send me code for javascript validation .........please send me its urgent a.first...;  ContactUs Data about shares/other realestate information

General

Java httpservletrequest
Java httpservletrequest      ... information, cookies from the request, getting session object to maintain session for the request etc. This interface extends the ServletRequest interface to provide

Java Beginners

Help me please!!! - Java Beginners
Help me please!!!  im badly needing the complete code for this project in java!!! can you please help me???!!! it is about 1-dimensional array in java! it goes something like this. . . "GRADES" Student 1: Student 2

JSP Servlet Questions

please provide the code
please provide the code   Develop a multi-client chat application

Java Beginners

Java
Java  If i want to apply for a java certification then where should i go please provide me the details of the certification and the company name

Java Beginners

New To JAVA - Java Beginners
New To JAVA  hi iam new to java..,can you please guide me how... will get more information about java. Read more detail. http://www.roseindia.net/java/master-java/index.shtml Thanks

Java Beginners

Core java - Java Beginners
a link. This link will help you. Please visit for more information. http://www.roseindia.net/java/master-java/inheritance.shtml Thanks  Hi...Core java  Hello sir/madam, Can you please tell me why

Java Interview Questions

help please?
help please?  Define a class named Circle with the following properties: â?¢ An integer data field named radius with protected access modifier... the properties of both objects and also their surface area and circumference. java

Java Beginners

please tell me about command line arguments in java?
please tell me about command line arguments in java?  please tell me about command line arguments in java?   Hi Friend, The command-line... to run. For more information, visit the following links: http

Java Beginners

please help me - Java Beginners
please help me   I have some error in this programe //write acomputer programe using java to generate following series : //output: //1,2,3,0,-2,7,-4..... class Series1HW { public static void main(String args

JSP Servlet Questions

Please provide the code
Please provide the code   Write a program to recursively download the web pages available in the given site URL

Java Beginners

give information or website address
give information or website address  hi i want u r help .... i m finding code for constructing graph in java but during execting them i have problem bec of packages... has i proceed i came to know

Java Interview Questions

adding two numbers using bitwise operators
adding two numbers using bitwise operators  adding two integer numbers with using bitwise opeators   Hi Friend, Try the following code...[] args) { System.out.println("Adding 5 and 6......"); int x=5,y=6; int xor

Java Beginners

Please HELPP
Please HELPP  The University wants to make a basic graphical display to show how many people received different grades for a piece of work on a module. You are required to write a program in Java that achieves this. The program

JSP Servlet Questions

Logic error? HELP PLEASE! :(
Logic error? HELP PLEASE! :(  Hello Guys! i have a huge problem. What... email the page stuck which shows a blank page. By right it should display the date...//DTD HTML 4.01 Transitional//EN"><%@page language="java" contentType="text

JSP Servlet Questions

Please provide the code
Please provide the code   Program to find depth of the file in a directory and list all files those are having more number of parent directories

Eclipse Plugins

Masters of Java Assignment Plugin
it significantly easier to develop Master of Java Assignments by making use of the Eclipse Java IDE.  The plugin has the following features... Masters of Java Assignment Plugin

JSP Servlet Questions

Please answer me - JSP-Servlet
Please answer me  Hello Guys, this is the third time I'm sending this question. But I've not got the right answer from you. The again is: I need java... 2000 NOT MySQL. Please assist me and for other questions I've asked before

JSP Servlet Questions

Please provide the code
Please provide the code   Create a file system: We just have one file on the hard disk. But we can create directories, sub-directories and files in that file only

Advertisements

If you enjoyed this post then why not add us on Google+? Add us to your Circles