prameela chowdary
Do needful
2 Answer(s)      5 years ago
Posted in : Java Beginners

View Answers

May 20, 2008 at 1:38 PM


use conversion concept

May 20, 2008 at 1:49 PM


Hi friend,

import java.io.*;
import java.io.IOException.*;

public class StringToHexa{

public static void main(String args[])throws IOException{

System.out.println("This program convert string to Hexa");

BufferedReader buff = new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter string value!");
String st = buff.readLine();
for(int i = 0; i<st.length(); i++){
System.out.println();
int ch=(int)st.charAt(i);
String str="00"+Integer.toHexString(ch);
System.out.println("Place of " + i + " output is: " + str + ".");
}
}
}


-------------------------------------------------

Read for more information.

http://www.roseindia.net/java/









Related Pages:
Do needful - Java Beginners
Do needful  Hai how can I do the string to Hex in java. Pls help me  use conversion concept  Hi friend, import java.io.*; import java.io.IOException.*; public class StringToHexa{ public static void
do the following
do the following  write a program to enter the string and do the following 1- count totle number of vowel 2- replace vowel 3- delete the charactor from given value 4- riverce the string 5- convert second word in upercase 6
The while and do
While and do-while      ... that the condition becomes false and the loop terminates. Have a look at do-while statement now. Here is the syntax: do { statement(s
how to do this?
how to do this?   Given any integer 2D array, design then implement a Java program that will add to each element in the array the corresponding column number and the corresponding row number. Then, it prints the array before
php do while syntax
php do while syntax  How to create a do while loop in php. What is the syntax
php do while example
php do while example  Simple example of do while loop in PHP
php do while loop
php do while loop  Difference between do while loop and simple loop in PHP
while and do while
while and do while  hello, What is the difference between a while statement and a do statement?   hello, A while statement checks at the beginning of a loop to see whether the next loop iteration should occur. A do
php do while break
php do while break   receiving a Fatal saying cannot break/continue.. please suggest. Thank U
php do while false
php do while false   Is there any difference between FALSE and false
What does COMMIT do?
What does COMMIT do?  What does COMMIT do?   Hi, here is the answer, COMMIT makes permanent the changes made by DML statements in the transaction. The changes made by the DML statements of a transaction become
do-while loop
do-while loop  how many times will the following loop get executed and what will be the final value of the variable I after execution the loop is over. int I = 5; do{ I + = 3; System.out.println(""+I); I=I+1; }while(I>=9
Dont Do this - Java Beginners
Dont Do this  Whenever you guys ask a question please describe your query? Otherwise you lost your time and other who are given answer to you. thanks Rajanikant
help me to do it in jsp
help me to do it in jsp  if we click on a topic it should direct to another page in separate window i need to create a part of the web page which... to insert and update the topics via admin page. pls help me to do
what session.flush() do ?
what session.flush() do ?  Hi frineds , This is RajaSekharReddy can u Please answer these quesions 1.what session.flush() do ? 2.difference between load/get/criteria.these are all for retreving data or any difference
Database
Database  Hi i need Grover's algorithm coding!!! or any other searchin ALGORITH coding? its really urgent! pl do the needful
how to do this - JavaMail
how to do this  i have created three HTMl documents. i want to display three HTML documents combinely with in a single frame. can i save 3 HTMl combinely as single JSP.If combine how ? Plese send examples not only with HTML's
how to do gui
how to do gui  import java.util.Scanner; import javax.swing.JFrame; import javax.swing.JOptionPane; public class ShippingCost { public static void... is RM" + num1); } } } how to do gui for this coding..tq   import
cannot do the additional operator
cannot do the additional operator  i got problem with additional and multiplication operator...please anyone help me <html> <head> <title>Simple Calculator</title> <script language = "JavaScript
programes on do... while
programes on do... while   write a program to print reverse of a given digit write a program to check whether entered digit is palindrome or not write a program to check whether entered no. is Armstrong or not   1
How do i do the coding for 'leaving a comment' in java
How do i do the coding for 'leaving a comment' in java  i am designing a webpage.In my webpage i want to add the option of adding a comment by the readers of the page.how do i do
What do you mean by Deadlock?
What do you mean by Deadlock?  What do you mean by Deadlock
What does the delete operator do?
What does the delete operator do?  What does the delete operator do
Do search engines dislike frames?
Do search engines dislike frames?  Do search engines dislike frames
How do you define a constant?
How do you define a constant?  How do you define a constant in php
Class.forName will do while loading drivers
Class.forName will do while loading drivers  What Class.forName will do while loading drivers
What does the delete operator do?
What does the delete operator do?  What does the delete operator do
While and do-while
While and do-while       Nested classes Here is another advantage of the Java, object-oriented programming language that allows us to define a class within another
special set of tags do in PHP.
special set of tags do in PHP.  What does a special set of tags do in PHP?   Hi friends, The special tag in php is <?= ?>. This tag is used to diasplay the output directly on the browser. Thanks
How do I do this program? I'm new to Java programming...
How do I do this program? I'm new to Java programming...  Suppose you want to print out numbers in brackets, formatted as follows: [1] [2] [3] and so on. Write a method that takes two parameters: howMany and lineLength
need someone to do/help with code
need someone to do/help with code  i need someone to do a code for me. It is a restaurant menu that displays a list of 10 food items. A customer inputs what they want to eat and they receive back a total price for the order. Also
What do you mean by Serialized?
What do you mean by Serialized?  What do you mean by Serialized?   Hi, It is the part of the isolation level , Its bassically use for the Data read by the current transaction cannot be changed by another transaction
How can I do it? .click();
How can I do it? .click();  I have a very unusual problem. I want to make a script like this: <script> x = document.getElementById... want that it make mouseup in this element. How can I do it, because if I write
Why do we use ORM?
Why do we use ORM?  Why do we use ORM?   ORM is technology to access the data from the database. With the help of ORM framework, business object is directly mapped to the database table. ORM reduces overhead of your
HOW TO I CHANGE THE SWITCH TO IF ELSE OR DO WHILE OR WHILE DO FOR THIS CODING
HOW TO I CHANGE THE SWITCH TO IF ELSE OR DO WHILE OR WHILE DO FOR THIS CODING  import java.util.LinkedList; import java.util.*; import java.io.*; import java.lang.*; public class LinkedListv4 { char question; Scanner console
HOW TO I CHANGE THE SWITCH TO IF ELSE OR DO WHILE OR WHILE DO FOR THIS CODING
HOW TO I CHANGE THE SWITCH TO IF ELSE OR DO WHILE OR WHILE DO FOR THIS CODING  import java.util.LinkedList; import java.util.*; import java.io.*; import java.lang.*; public class LinkedListv4 { char question; Scanner console
HOW TO I CHANGE THE SWITCH TO IF ELSE OR DO WHILE OR WHILE DO FOR THIS CODING
HOW TO I CHANGE THE SWITCH TO IF ELSE OR DO WHILE OR WHILE DO FOR THIS CODING  import java.util.LinkedList; import java.util.*; import java.io.*; import java.lang.*; public class LinkedListv4 { char question; Scanner console
HOW TO I CHANGE THE SWITCH TO IF ELSE OR DO WHILE OR WHILE DO FOR THIS CODING
HOW TO I CHANGE THE SWITCH TO IF ELSE OR DO WHILE OR WHILE DO FOR THIS CODING  import java.util.LinkedList; import java.util.*; import java.io.*; import java.lang.*; public class LinkedListv4 { char question; Scanner console
how do i solve this problem?
how do i solve this problem?  Define a class named Circle with the following properties: List item An integer data field named radius with protected access modifier, and a String data field named colour with private access
how do i solve this question?
how do i solve this question?  1.Define a class named Circle with the following properties: a) An integer data field named radius with protected access modifier, and a String data field named colour with private access modifier
how to do actionsheet in iphone?-RV
how to do actionsheet in iphone?-RV  -(IBAction)buttonClicked { UIActionSheet *asheet = [[UIActionSheet alloc] initWithTitle:@"Share With" delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil
how to do map in iphone?-RV
how to do map in iphone?-RV  In Appdelegate.h @class MapKitDisplayViewController; @interface MapKitDisplayAppDelegate : NSObject <UIApplicationDelegate> { UIWindow *window; MapKitDisplayViewController
do-while Loop in Java
do-while Loop in Java      ... and processes once at least. For that you have to use the do while loop in  after that check the condition then we use the do-while loop statement. do-while loop
while & do..while Loop
while & do..while Loop while loop The while loop iterate until provided... : Value of j 1Value of j 2Value of j 3 The do...while statement The do-while... : do   {   code to be executed;   } while (condition
do while loop
do while loop       In java a do while loop is a control flow statement that allows a certain code....     The do construct includes of a block of code along
PHP Do While Loop
Do-While Control Structure: Do-While loop is another type of loop which runs... within. We generally use Do-While loop  when the iteration must run at least once despite of the validity of the variable. In Do-While loop we need
How do you call a constructor for a parent class?
How do you call a constructor for a parent class?  How do you call a constructor for a parent class
How do you pass a variable by value?
How do you pass a variable by value?  How do you pass a variable by value
What does a special set of tags <?= and ?> do in PHP?
What does a special set of tags do in PHP?   What does a special set of tags do in PHP
What do you understand by private, protected and public?
What do you understand by private, protected and public?   Hi, What do you understand by private, protected and public? thanks

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.