Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


prameela chowdary
Do needful
2 Answer(s)      6 years and 8 months ago
Posted in : Java Beginners



Advertisement
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 Tutorials/Questions & Answers:
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
Advertisements
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 loop
php do while loop  Difference between do while loop and simple loop in PHP
php do while example
php do while example  Simple example of do while loop in PHP
php do while syntax
php do while syntax  How to create a do while loop in php. What is the syntax
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
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
How to do url rewritting?
How to do url rewritting?  Dear Sir/Mam I have this link http://localhost:8085/call4admission/admin/home/Admin... to do?Please suggest
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
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
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
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
What do I need to do to use a MSSQL-Server with Web-Harvester?
What do I need to do to use a MSSQL-Server with Web-Harvester?  What do I need to do to use a MSSQL-Server with Web-Harvester
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
How do I upgrade mysql?
How do I upgrade mysql?  How do I upgrade mysql
Do search engines dislike frames?
Do search engines dislike frames?  Do search engines dislike frames
What does the delete operator do?
What does the delete operator do?  What does the delete operator do
Class.forName will do while loading drivers
Class.forName will do while loading drivers  What Class.forName will do while loading drivers
How do you define a constant?
How do you define a constant?  How do you define a constant in php
What does the delete operator do?
What does the delete operator do?  What does the delete operator do
What do you mean by Deadlock?
What do you mean by Deadlock?  What do you mean by Deadlock
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
 

 

 

DMCA.com