Home Tutorialhelp Comment answer to Saldy's question

 
 

Comment

Elastos
answer to Saldy's question,
April 30, 2009 at 4:45 PM

public static void main(String[] args)
{
String inputBase = JOptionPane.showInputDialog("enter base number between 1-9");
String inputExponent = JOptionPane.showInputDialog("enter exponent between 1-9");
int base = Integer.parseInt(inputBase);
int exp = Integer.parseInt(inputExponent);

Math.pow(base, exp);
}
elastoshoes@yahoo.com
View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
Java Beginners

Java experts.Please answer this question - Java Beginners
Java experts.Please answer this question  class A { void get...(); } } ------------------------------------------ Read for more information. http://www.roseindia.net/java/beginners/nonstaticvariable.shtml 

Java Beginners

Clarify my last question's answer - Java Beginners
Clarify my last question's answer  Dear expert, I've tried out... did not specify my question too clearly. Here's my 2 database... question. Do you want to search through id or through the qualification selected 

Java Interview Questions

java interview question and answer - Java Interview Questions
java interview question and answer   sir, i want one mark java interview question and answers 

Java Beginners

Plz answer - Java Beginners
Plz answer  Create a Java Bean Class ?? Customer according to the below given class diagram. Customer ------------------------------------ - customerId : int - customerName : String - customerAddress : String - pincode 

Java Beginners

plz answer - Java Beginners
 

Java Beginners

Interview question link - Java Beginners
Interview question link  Hi, I want JAVA+J2EE interview question and answer please suggesion me link 

Java Beginners

question
question  dear sir/madam my question is how to compare two text format in java..we are java beginners..so we need the complete source code for above mentioned question...we have to compare each and every word 

Programming Questions

Question Answer
website. If you found the question you can read the answer if it solves your...? Browse Latest Questions Question-Answer Guidelines... Here, you can post your desired question. For posting any question / query 

Java Beginners

to know my answer
to know my answer  hi, this is pinki, i can't solve my question "how to change rupee to dollar,pound and viceversa using wrapper class in java." will u help me 

Java Beginners

referring to question Person.. - Java Beginners
referring to question Person..  Hi!firstly i want to thank to someone who always answer my questions, i really appreciate it..emm may i know what...=gender; this is base on previous question (Person)..can u explain to me 

Ajax Questions

share your answer to this question
share your answer to this question  i need to know what is the TELERIK CONTROL? what is the map suite? what is dunda chart? Also i have to know what are the websites available which give infor regarding this. Let me know how 

Java Beginners

pls answer these question
pls answer these question  Write a program that prompts the user to input the length and width of a rectangle. Then calculate and prints the rectangle??s area and perimeter.   import java.io.*; class rectangle 

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 servlet or jsp codes that I can use to insert and retrieve image from MSSQL 

Java Beginners

plz. answer my ques - Java Beginners
plz. answer my ques  I want to ask a prog. prob which would create a prog that would simply take username and password as input and will display ***** while taking passwords as input.(As it is done at login in websites). Also 

Java Beginners

Java question to implement polymorphism - Java Beginners
Java question to implement polymorphism  I have a question that i need to answer:- Using the principle of polymorphism provide implementation for the calculateFees() method for each Online Fax Subscription type 

Programming Questions

Question-Answer Guidelines
Question-Answer Guidelines How to ask questions... and rating the articles/ tutorials. Same like this, question-answer section... Question-Answer Guidelines Disclaimer RoseIndia does 

JSP Servlet Questions

send answer
send answer  For online exam project,i want single question on single page and on that page there are three buttons previous,submit,next.If i click on next button it show next question from database 

Java Beginners

i cNT GET ANSWER FOR THIS QUESTION
i cNT GET ANSWER FOR THIS QUESTION  The roots of the quadratic equation ax2+bx+c=0, aï??¹0 are given by the following formula: x=(-b?±â?š(b^2-4ac))/2a In this formula. The term b2-4ac is called 

Java Beginners

java.please answer this...
java.please answer this...   Q1).How we can write a complete JAVA program that computes the following summation formulas..? ??_(i=1)^n????i^2=?? (n^(2 ) ??(n+1)??^2)/4 

Java Beginners

java question - Java Beginners
Java Question What is Public, Static, void and main  Can anyone please explain the meaning of public static and void main in Java?  Public - Means every user can use the method, class or variables whether it's a member 

Java Beginners

Question - Java Beginners
Question   How I can Print Following Output By Using any Loops,Help Me output 

JSP Servlet Questions

Please , can any one answer this Question?
Please , can any one answer this Question?  How to cummunicate one web application to another web application in different places 

Java Beginners

question on class - Java Beginners
question on class   A class can act as subclass itself? if yes give me one example if no give me one example 

Java Beginners

question - Java Beginners
a folder in java pls send me the mail immediatly  Hi chaitanya, Do u want the program for creating folder in Java or any thing else? Your question is somewhat confusing 

Java Beginners

java question - Java Beginners
java question  how would you convert the following values into a string (a)124 (b)5.89  Hi Friend, Try the following code: class Convert { public static void main(String[] args) { int num1=124 

Java Beginners

java question - Java Beginners
java question  given a variable declaration of:final int NUMEMPS=100; (A)what happens to the value of variable NUMEMPS if i decide to assign it a value of 50?  Hi Friend, If you assign a value to the final variable 

Java Beginners

java question - Java Beginners
java question  given a method header below pulic void setNew Values(doublelen,doublewid) (a)what would happen if i use the method as setNew Values(2,4)and state reason why?  Hi Friend, It will accept the integer 

Java Beginners

java question - Java Beginners
java question  Given the string "hey how are you today?" how many tokens would you have after breaking up the string using whitespace as a delimiter?  Hi Friend, Try the following code: import java.util.*; public 

Java Beginners

JAVA QUESTION - Java Beginners
JAVA QUESTION   1) please explain overloading constructors by using... be implemented in Java language in form of multiple methods having the same method name. Java code uses a late-binding for supporting polymorphism, the method which 

Java Beginners

hello sir, please give me answer - Java Beginners
hello sir, please give me answer  Write a program in Java that calculates the sum of digits of an input number, prints... ways in java? so , sir please tell me full solution of this program   Here is your complete 

Java Beginners

Circle question - Java Beginners
Circle question  Hey You helped me with one this question already but the code you gave doesnt seem to work any more ideas? Write an application that uses Circle class you created in the previous assignment. ? The program 

Java Beginners

A simple question - Java Beginners
A simple question   Design a program to calculate either the square of a number or the square root of a number and display the results. output should be like:- Enter a float value: 6.2 Do you want the (s)quare or square (r 

Java Beginners

swing question - Java Beginners
swing question  how i can create login form in java with password entering i can to next page only if password is correct i want to use java swing feature 

Java Beginners

Another Question - Java Beginners
Another Question  This is the question I posted yesterday: "I'm trying to write a program that has a text field for input, two buttons...... Thank you!  Hi Friend, Save the following code in the java 

Java Beginners

This Question was UnComplete - Java Beginners
This Question was UnComplete  Implement a standalone procedure to read in a file containing words and white space and produce a compressed version of the file in an output file. The compressed version should contain all 

Java Beginners

programming question - Java Beginners
 

Java Beginners

Jtable Question - Java Beginners
 

Java Beginners

General Question - Java Beginners
 

Java Beginners

question - Java Beginners
 

Java Beginners

java question
java question  Implement a class called ShortAddress that has the following attributes: firstName, secondName, and phoneNumber. Now implement... details or the long address details. This means your final answer should have 

Struts Questions

struts interview Question - Struts
struts interview question and answer java  struts interview question and answer java 

Java Beginners

objective type question - Java Beginners
objective type question  Hi, Thakns for properly reply,I want to core java objective programming question plz let me url of this problem Thanks Ragini  You can find in www.javafaqs4u.com   

Java Beginners

java array question. - Java Beginners
java array question.  I need help with this: Create a program that will generate 50 random numbers between the range of -5 and 45 and store them in an array. Have the program then print the numbers in rows of 10 and calculate 

JSP Servlet Questions

Urgent Answer Req
Urgent Answer Req  how to view the file content which is at client side from jsp in java 

Java Beginners

Java Conversion Question - Java Beginners
Java Conversion Question   Hello sir ,How i can Convert Java Code to Vb.net ,Plz Help Me 

Java Beginners

Java programming question - Java Beginners
Java programming question   Give the definition of a class named Doctor whose objects are records for a clinic's doctors. This class will be derived class of the class SalariedEmployee that is given below the question. A Doctor 

Java Beginners

java swing question - Java Beginners
java swing question  how i can create login form in java with password entering i can to next page only if password is correct i want to use java swing feature 

Java Beginners

question
question   sir plz tell me what should i give in title box. just i want java program for the question typed in this area 

Java Beginners

question
question   sir plz tell me what should i give in title box. just i want java program for the question typed in this area 

Java Beginners

Question
Question   When there is an exception in my program how java runtime system handles 

Java Beginners

java apptitude question and answers - Java Beginners
java apptitude question and answers  i want java appititude question and answers  Hi Friend, Please visit the following link: http://www.roseindia.net/interviewquestions/ Thanks 

Programming Tutorials

Core Java Interview Question, Interview Question
Core Java Interview Question Page 14       Question: What is clipping? Answer: Clipping... that is implemented in a language other than Java. Question: Can a for statement loop 

Java Beginners

Simple Java Question - Java Beginners
Simple Java Question  [color=#0040BF] Dear All, I have a huge text file with name animal.txt, I have the following sample data: >id1 lion >id2 horse cat >id3 mouse tiger I need to save the contents 

Java Beginners

Java programming question - Java Beginners
Java programming question  I want to write a program that converts temperatures from celsius to fahrenheit and vice versa. It also converts kilometers to miles and vice versa using "methods".  Hi Friend, Try 

Java Beginners

Java simple question - Java Beginners
Java simple question  I have to design a program for a trucking company that has 7 trucks in its fleet. Each truck is identified by a number, 1-7. Each also has a maximum weight. Assign the max weight limit to each truck 

Programming Tutorials

Core Java Interview Question, Interview Question
Core Java Interview Question Page 17  .... Question: Can an object be garbage collected while it is still reachable? Answer... : z ? Answer: It is written x ? y : z. Question: What is the difference between 

Programming Tutorials

Core Java Interview Question, Interview Question
Core Java Interview Question Page 21  ... and are laid out using the squares of a grid. Question: What an I/O filter? Answer: An I.... Question: If an object is garbage collected, can it become reachable again? Answer 

Java Beginners

prime number question - Java Beginners
prime number question  For the question located here: http://www.roseindia.net/answers/viewanswers/5778.html How do you make it so that the user has to input the two numbers and it displays the prime numbers within the range 

Java Beginners

java related question
java related question  How can we make a program in which we make mcqs question file and then make its corresponding answer sheet....like if we make 15 mcqs then java should generate it answer sheet of 15 mcqs with a,b,c d 

Java Beginners

program code for this question - Java Beginners
program code for this question  QUESTION 2: Address Information Lookup Every machine on a network has a unique identifier, called an IP address..., are kept in a file. Your task: Write a Java application LookUp.java that acts 

Java Beginners

Java Class Question?
Java Class Question?  1. Create an application names Numbers whose... but not display the answer instead it should return the answer to the calling method which displays the answer 

Programming Tutorials

Core Java Interview Question, Interview Question
Core Java Interview Question Page 22       Question: What is a compilation unit? Answer: A compilation unit is a Java source code file. Question: What interface 

Programming Tutorials

Core Java Interview Question, Interview Question
Core Java Interview Question Page 27  ... Question: Explain modifier final Answer: Final can be applied... and methods Question: Can abstract class be instantiated Answer 

Programming Tutorials

Core Java Interview Question, Interview Question
Core Java Interview Question Page 26  .... Which primitive datatypes are signed. Answer: All except char and Boolean Question.... It range is 0 to 2^7-1 Question: What forms an integral literal can be Answer 

Java Beginners

program code for this question - Java Beginners
program code for this question  QUESTION 1: Electricity Bill Tshubang Energy Pty (Ltd) is a company that supplies electricity to its customers...: Write a Java application, ProduceBills.java, that reads the name of the file 

Programming Tutorials

Core Java Interview Question, Interview Question
Core Java Interview Question Page 12       Question: What is a transient variable? Answer.... Question: How are Observer and Observable used? Answer: Objects that subclass 

Programming Tutorials

Core Java Interview Question, Interview Question
Core Java Interview Question Page 18       Question: Is &&= a valid Java operator? Answer: No, it is not. Question: Name the eight primitive Java 

Programming Tutorials

Core Java Interview Question, Interview Question
Core Java Interview Question Page 16  ...? Answer: Frame Question: How are commas used in the intialization... implementation is deferred to a subclass. Question: How are Java source code files 

Java Beginners

With reference to the question " TELL US THE LOGIC OF DICEROLLER"???
With reference to the question " TELL US THE LOGIC OF DICEROLLER"???  Tell us the logic of diceroller 1 Answer(s) 18 minutes and 38 seconds ago Posted in : Java Beginners As told ""The (Math.random()*6)+1 returns the random 

Programming Tutorials

Core Java Interview Question, Interview Question
Core Java Interview Question Page 15  ... a container to be laid out and redisplayed? Answer: validate() Question: What... is to provide access to the Java runtime system. Question: How many times may 

Programming Tutorials

Core Java Interview Question, Interview Question
mentions a shallow copy in Java? Answer: Object cloning. Question: If you're... Core Java Interview Question Page 2   ... a Vector and an ArrayList Answer: Java Vector class is internally synchronized 

Programming Tutorials

Core Java Interview Question, Interview Question
Core Java Interview Question Page 13       Question: What is an Iterator interface? Answer...? Answer: setBounds() Question: How many bits are used to represent Unicode 

Programming Tutorials

Core Java Interview Question, Interview Question
Core Java Interview Question Page 30  ... Answer: Yes constructors can be overloaded Question: What happens when... in the constructor Question: What is an inner class Answer: An inner class is same 

Programming Tutorials

Core Java Interview Question, Interview Question
Core Java Interview Question Page 19  ... an exception be rethrown? Answer: Yes, an exception can be rethrown. Question: Which... is the immediate superclass of the Container class? Answer: Component Question 

Programming Tutorials

Core Java Interview Question, Interview Question
Core Java Interview Question Page 23  ... and interfaces that are loaded by a Java program. Question: How does a try statement.... Question: What method must be implemented by all threads? Answer: All tasks must 

Java Beginners

answer me this program
answer me this program  Java Code to Maintain student record,Name, Age, Marks of 5 subjects for a Student,Display Student age and name,Calculate Average of all marks and display it   Java student record import 

Java Beginners

answer me this program
answer me this program  Java Code to Maintain student record,Name, Age, Marks of 5 subjects for a Student,Display Student age and name,Calculate Average of all marks and display it   Java student record import 

Java Beginners

question
question  how to capture web snippets using java or java script 

Java Interview Questions

plz give me answer
plz give me answer   description about string class methods   Java string methods 

Java Server Faces Questions

plz give me answer
plz give me answer   description about string class methods   Java string methods 

Java Server Faces Questions

plz give me answer
plz give me answer   description about string class methods   Java string methods 

Interview Questions

Core Java Interview Question Page 3
Core Java Interview Question Page 3  ... method in a Java abstract class          Question: What.... Abstract classes are fast. Question: What is user-defined exception in java ?  

Programming Tutorials

Core Java Interview Question, Interview Question
Question: What is the ultimate ancestor of all java classes Answer: Object class is the ancestor of all the java classes Question: What... Core Java Interview Question Page 32    

Programming Tutorials

Core Java Interview Question, Interview Question
Core Java Interview Question Page 20       Question: Name four Container classes. Answer... by the Java run-time system? Answer: The Java runtime system generates Runtime 

Java Interview Questions

plz give me answer
plz give me answer  Discuss & Give brief description about string class methods   Java string methods 

Java Beginners

question
question  why java is platform independent in nature 

Java Beginners

clarify my question - Java Beginners
 

Java Beginners

i need to answer this Question but i can't do it probably
i need to answer this Question but i can't do it probably   use the web to locate the lyrics to the traditional song"The Twelve Days of Christmas" the song contains a list of gifts received for the holiday.the list is cumulative 

Java Beginners

question
question  select from table using jsp , java bean and mysql 

Java Beginners

question
question  how to solve the problem of The requested resource is not available+java+eclipse 

Java Beginners

question
question  which language is leading the world java or .net and which language followed by all the Oops principles either java or .net 

Java Beginners

QUESTION
QUESTION  please atach java tutorial to my email   Hello Friend, Please visit the following link: Java Tutorial Thanks 

Java Beginners

question
question  Dear Sir, could you please send me a simple example of java and database connectivity with java and sql   Please visit the following link: JDBC Tutorials 

Java Beginners

question
question  do you have any idea about the following concept,give me Java code for A COMPARATIVE STUDY ON PERSONALIZATION IN INFORMATION RETRIEVAL WITH SHARING OF THE CONCEPT BASED USER PROFILES using Java 

Programming Tutorials

Core Java Interview Question, Interview Question
. Question: What is reflection in java Answer: Reflection allows Java code... Core Java Interview Question Page 24  ...(String args[]) method in Java Answer: We need public: The method can 

JavaScript Questions

question
question  how to display the uploaded video file size in database using java or javascript 

Java Beginners

Question
Question  Sir, give me a java program to count the number of tokens , given a string and a seperator 

Java Beginners

question
question  Sir, Please send me Java Swing source code for video streaming , it's very urgent 

Java Beginners

question
question  Sir, Please give me a source code for client server socket programing in java 

Java Beginners

question
question  Good Morning Sir, Please give me Java source code for Peer-to-Peer Streaming 

Advertisements Advertisements
 

 

 

DMCA.com