coding 1 Answer(s) 3 years and 3 months ago
Posted in : Java Beginners
A message is to be conveyed by adding 10 to the toatal of the ASCII code of characters in the statement given below.WAP to print the following statement into a code message: YOKO HAS SMILED.
View Answers
February 9, 2010 at 3:42 PM
Hi Friend,
Try the following code;
import java.util.*; public class Encode {
public static void main(String[] args) { int sum=0; String str="YOKO HAS SMILED"; for ( int i = 0; i < str.length(); ++i ){ char c = str.charAt(i); int j = (int) c; System.out.println("ASCII OF "+c +" = " + j + "."); sum+=j; } System.out.println(sum+10); } }
Thanks
Related Pages:
coding
coding I need the logout coding. can you please help me.
Please visit the following links:
http://www.roseindia.net/quickguide/tomcat/Logout.shtml
http://www.roseindia.net/jsp/loginstatus.shtml
program coding
program coding how to rearrange the array a[1]. . a[n] even elements and odd elements? please give the example coding program.please provide the coding for this problem
coding for project coding for project hai
how to write jsp coding for project smart accessories ......
that s to navigate to another page when you click on a tag
Java Coding
Java Coding Hello, Can u please tel me how to improve my coding techniques.I am feeling difficulty with coding but I am perfect with my theory part
coding for chart coding for chart I want to convert a character into binary then convert it into its diagram in form of digital electrical signals.How can I do java coding for this diagram
coding of button coding of button What is code of fetching the value of button in a textbox using javascript
program coding
program coding how to rearrange the array a[1]. . a[n] even elements and odd elements? please give the example coding program
coding C coding C Write a program for a GENERAL NUMBER CONVERTERS which include
binary, decimal, octa and hexadecimal. You need to write the program using C
language
need coding
need coding sir i need code for simple bank application in jsp please send it
sir i need the coding for simple bank application in jsp.
Please visit the following link:
Jsp Bank Application
coding in java coding in java write a code to calculate the product of odd integers from 1-15
class ProductOfOddIntegers
{
public static void main(String[] args)
{
long product=1;
for(int i=1;i<=15;i
Coding with Ejb Coding with Ejb Hi Team,
I am learning Ejb now. Can anybody help me how to implement this Stateful Session Bean Example by using this Hibernate example. Thanks in advance.
Sorry, actually I want simple code adding
coding shape coding shape i need to write a simple java program. the system must be in an applet and allows a user to choose whether to draw shapes such as circles, rectangles or lines on the screen. also, user can add circles by choosing
CODING TEST CODING TEST Problem Statement
Consider a inter dealer-broker network which various financial stock brokers use to execute customer stock trading...¢ Coding productivity (more time you take to submit the exercise, lesser you
CODING TEST CODING TEST Problem Statement
Consider a inter dealer-broker network which various financial stock brokers use to execute customer stock trading...¢ Coding productivity (more time you take to submit the exercise, lesser you
Coding In Paradise Coding In Paradise
Excellent and thoughtful AJAX tutorials and techniques by Brad Neuberg
Read full Description