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



Home Answers Viewqa Java-Beginners Help with cypher and key problem in Java
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


tay smith
Help with cypher and key problem in Java
1 Answer(s)      6 years and 2 months ago
Posted in : Java Beginners



Advertisement
View Answers

October 31, 2008 at 11:59 AM


Hi friend,


Please implement following code.


import java.io.*;
import java.lang.*;

public class CharToString{
public static void main(String args[])throws IOException{
BufferedReader read = new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter a Character:");
String s = read.readLine();
char c = s.charAt(0);
System.out.println("Character value is " + c);
String s1 = Character.toString(c);
System.out.println("String value is " + s1);
}
}

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

Thanks.


Related Tutorials/Questions & Answers:
Help with cypher and key problem in Java - Java Beginners
Help with cypher and key problem in Java  So far I have a program that asks a user for a message and a key amount and displays an encrypted message which is obtained by shifting the each character according to the key amount
Java enter Key problem - Java Beginners
Java enter Key problem  How we can use Enter Key to Click a Button(JButton) in Java?  hi, i guess u mean u want to make a button as a default button. if it is so, then u can do it by rootpane, getRootPane
Advertisements
java key value pair
java key value pair  Hi, How to save the java key value pair in Java? Thanks   Hi, You can use the Hashtable for this purpose. Check the tutorial Creating a Hash Table. Thanks
please help me to this problem..
please help me to this problem..  i wrote a program like keyboard and i used [JTextFiled] means that just you can write inside the program (i.e inside the JTextField) but i want to make this program to let me write where i
registration key - Java Beginners
registration key  I want the serial key for JCreator Pro 4.50. I lost it. If any body has it please send
help me to solve this problem..
help me to solve this problem..  Given below is a class definition for Book. Type and compile the class, and answer the following questions: class Book { String title; //bookâ??s title double price; //bookâ??s price
PLEASE HELP CAPTCHA PROBLEM
PLEASE HELP CAPTCHA PROBLEM  how can i make the captcha refresh autometically ???? please help this is <%@ Page Language="C#" %> <%@ Import Namespace="System.Drawing"%> <%@ Import Namespace
Help me on the given problem of String
Help me on the given problem of String  class Test { string s1="Hello",s2="lo"; System.out.println((s1=="Hel"+"lo")); System.out.println((s1=="Hel"+lo)); } The above program prints true
please help me to overcome this problem
please help me to overcome this problem  how to make it easy to write java code. can u please give me suggestions
Please Help To Solve My Problem
Please Help To Solve My Problem  PHP I Have 6 Textbox and 1 ok... This Problem With If...Else If...Else Statement But When the More Team Are There Then It's Large Codding So I Need To Help To Another Way To Do
how to use foreign key in java
how to use foreign key in java  I have two tables in my MySQL..., first name varchar(10), primary key(id) ) CREATE TABLE table2 ( id_fk int, last varchar(30), CONSTRAINT fkid FOREIGN KEY(idfk) REFERENCES table1(id) ON DELETE
servlet redirect problem help needed
servlet redirect problem help needed  package p; import java.io.IOException; import javax.servlet.RequestDispatcher; import... is calling by a jsp..there is no problem,in this servlet the if condition always
servlet redirect problem help needed
servlet redirect problem help needed  package p; import java.io.IOException; import javax.servlet.RequestDispatcher; import... is calling by a jsp..there is no problem,in this servlet the if condition always
i need help to solve this problem
i need help to solve this problem  Write a stack class ArrayStack.java implements PureStack interface that reads in strings from standard input and prints them in reverse order. and Show step by step what queue will look like
Java Swing Key Event
Java Swing Key Event In this tutorial, you will learn how to perform key event in java swing. Here is an example that change the case of characters to uppercase as the user enters any character. The given code accepts the string from
How to add key value pair in Java
How to add key value pair in Java  Hi, I have to store the key and value pair in Java. How to store key value pair in Java? Thanks   Hi, You can use the put method of Hashtable. Check the tutorial Creating a Hash
Java Encryption using AES with key password
Java Encryption using AES with key password    /* AES alogrithm using password key */ /* developed by Nishanth Thomas Insolutions Global Pvt... or PKCS5, KeySize = 128, BlockSize = 128, Key = keyBytes
Handling Key Press Event in Java
Handling Key Press Event in Java   ... the handling key press event in java. Key Press is the event is generated when you press any key to the specific component. This event is performed by the KeyListener
Final Key Word in Java
.style1 { text-align: center; } Final key word in java In java final is a key word used in several different contexts. It is used before... in java 1.1, its declaration lacks an initializer. A blank final can only
facing problem plz help me out - Framework
Facing problem plz help me out  hi i am new to servlet i deployed... the web.xml file too parallel to the classes folder now i am facing this problem.plz tell me what to do... error:The requested resource (Servlet servlet
problem in writing coding. Please help me.
problem in writing coding. Please help me.  Hi sir, my name is Logeswaran. I have problem in writing JSP coding for my university assigments... like? I'm really stuck on this. Please help me. By the way, I'm using Access
Key features in Java EE 6
In this section, we will take a brief look over key features in Java EE 6
Read the Key-Value of Property File in Java
Read the Key-Value of Property File in Java  ... the key-value of properties files in Java. The properties file provides... the key-values of the properties files according to the key with the help
java Problem
java Problem  I want to create a binary tree for displaying members in Downline. i am creating a site for MLM(Multi-Level MArketing). tree must be dynamically populated from database. is there any help for me. Thanks in advance
sanity check on key recorder - Java Beginners
sanity check on key recorder  In this code, it records both IE and FireFox keys and converts them to upper case. It also displays any key hit even...(); } //function to display which key is used function getkey(e, obj
Struts2 Helloworld problem -Please help - Struts
. Please help me out in resolving this problem and provide me a pointer...Struts2 Helloworld problem -Please help  Hi I am a beginner... problem I unable to execute the program successfully. Please find my example
Help With Java...
Help With Java...  Write a java program that can take a positive integer greater than 2 as input and write out the number of times one must repeatedly divide this number by 2 before getting a value less than 2
java help!
java help!   I need help starting off a program I am trying to write for class. The class should contain a private instance variable to represent temperature in Degrees Celsius and it should have the following methods
Read the Key-Value of Properties Files in Java
Read the Key-Value of Properties Files in Java  ... to read the key-value of properties files in Java. This section provides you an example for illustration how to read key and it's regarding values from
JAVA Problem
JAVA Problem  Write a program that takes two parameters 1. a word 2. an array of words It should then remove all instances of the word in the array. For Example: INPUT word="ravi" word_array = ["Chethan Bhagat
help in java
help in java   Rational Numbers Rational numbers are numbers that can be represented as a fraction p / q where p is an integer number and q is a positive integer (q != 0). Design and implement a Java class RationalNumber
 

 

 

DMCA.com