Do needful

Do needful

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      ... terminates. Have a look at do-while statement now. ADS_TO_REPLACE_3 Here is the syntax: do { statement(s) } while (expression); Lets
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
ModuleNotFoundError: No module named 'do'
ModuleNotFoundError: No module named 'do'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'do' How to remove the ModuleNotFoundError: No module named 'do' error
How do you do data mining projects?
How do you do data mining projects?  Hi, I am beginner in Data... do you do data mining projects? Try to provide me good examples or tutorials links so that I can learn the topic "How do you do data mining projects
while and do while
while and do while  hello, What is the difference between a while statement and a do statement?   hello,ADS_TO_REPLACE_1 A while... should occur. A do statement checks at the end of a loop to see whether the next
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
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
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
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 does COMMIT do?
What does COMMIT do?  What does COMMIT do?   Hi, here is the answer,ADS_TO_REPLACE_1 COMMIT makes permanent the changes made by DML statements in the transaction. The changes made by the DML statements
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
Do data analysts code?
Do data analysts code?  Hi, I am beginner in Data Science and machine learning field. I am searching for the tutorials to learn: Do data analysts... the topic "Do data analysts code?". Also tell me which is the good
Do data scientist code?
Do data scientist code?  Hi, I am beginner in Data Science and machine learning field. I am searching for the tutorials to learn: Do data... the topic "Do data scientist code?". Also tell me which is the good
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 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 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
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
How do I upgrade mysql?
How do I upgrade mysql?  How do I upgrade mysql
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
Do search engines dislike frames?
Do search engines dislike frames?  Do search engines dislike frames
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
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
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
How do you sum a dictionary
How do you sum a dictionary  Hi, I want to sum the values of two dictionary based on keys. How do you sum a dictionary
ModuleNotFoundError: No module named 'do-cli'
ModuleNotFoundError: No module named 'do-cli'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'do-cli' How to remove the ModuleNotFoundError: No module named 'do-cli'
ModuleNotFoundError: No module named 'pelican-do'
ModuleNotFoundError: No module named 'pelican-do'  Hi, My Python... 'pelican-do' How to remove the ModuleNotFoundError: No module named 'pelican-do' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'scrapy-do'
ModuleNotFoundError: No module named 'scrapy-do'  Hi, My Python... 'scrapy-do' How to remove the ModuleNotFoundError: No module named 'scrapy-do' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'sub-do'
ModuleNotFoundError: No module named 'sub-do'  Hi, My Python...-do' How to remove the ModuleNotFoundError: No module named 'sub-do'... to install padas library. You can install sub-do python with following command
ModuleNotFoundError: No module named 'sub-do'
ModuleNotFoundError: No module named 'sub-do'  Hi, My Python...-do' How to remove the ModuleNotFoundError: No module named 'sub-do'... to install padas library. You can install sub-do python with following command
ModuleNotFoundError: No module named 'sub-do'
ModuleNotFoundError: No module named 'sub-do'  Hi, My Python...-do' How to remove the ModuleNotFoundError: No module named 'sub-do'... to install padas library. You can install sub-do python with following command
ModuleNotFoundError: No module named 'do-audit'
ModuleNotFoundError: No module named 'do-audit'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'do-audit' How to remove the ModuleNotFoundError: No module named 'do-audit
ModuleNotFoundError: No module named 'do-cli'
ModuleNotFoundError: No module named 'do-cli'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'do-cli' How to remove the ModuleNotFoundError: No module named 'do-cli'
ModuleNotFoundError: No module named 'do-client'
ModuleNotFoundError: No module named 'do-client'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'do-client' How to remove the ModuleNotFoundError: No module named 'do
ModuleNotFoundError: No module named 'do-inventorygroups'
ModuleNotFoundError: No module named 'do-inventorygroups'  Hi, My... named 'do-inventorygroups' How to remove the ModuleNotFoundError: No module named 'do-inventorygroups' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'do-latency'
ModuleNotFoundError: No module named 'do-latency'  Hi, My Python... 'do-latency' How to remove the ModuleNotFoundError: No module named 'do... have to install padas library. You can install do-latency python
ModuleNotFoundError: No module named 'do-mpc'
ModuleNotFoundError: No module named 'do-mpc'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'do-mpc' How to remove the ModuleNotFoundError: No module named 'do-mpc'
ModuleNotFoundError: No module named 'do-pack'
ModuleNotFoundError: No module named 'do-pack'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'do-pack' How to remove the ModuleNotFoundError: No module named 'do-pack
ModuleNotFoundError: No module named 'do-py'
ModuleNotFoundError: No module named 'do-py'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'do-py' How to remove the ModuleNotFoundError: No module named 'do-py'
ModuleNotFoundError: No module named 'DO_runin'
ModuleNotFoundError: No module named 'DO_runin'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'DO_runin' How to remove the ModuleNotFoundError: No module named 'DO_runin
ModuleNotFoundError: No module named 'do-the-webp'
ModuleNotFoundError: No module named 'do-the-webp'  Hi, My Python... 'do-the-webp' How to remove the ModuleNotFoundError: No module named 'do... you have to install padas library. You can install do-the-webp python

Ads