Education Menu

 

Features Menu

 

Additional Menu

 

Now Online

We have 126 guests online
 

@edulanka

 

Follow US

Twitter You Tube Google Plus
Pinterest Facebook EduLanka Blog

 

Information Zone

eduLanka Sinhala

Welcome to eduLanka.LK, Largest online education web site in Sri Lanka & most popular educational web site among Sri Lankan students. EduLanka, Best nonprofit & educational website is provided large numbers of online lessons, education related course information, teachers information, E books, examination result alerts, goverment job alerts, tuition class information, career guide for school leavers and more resources related to education in Sri Lanka. Edulanka provides education related resources from primary education, O-Level & A-Level education, University & Postgraduate education and vocational training education.

EduLanka IDN Domains http://එඩියුලංකා.ලංකා http://எடியுலங்கா.இலங்கை


jobs Mathematics SLAS Exam Dharma Education Results



 

Inside Online School

Share Us

Home Page Information Technology Java Programing (ජාවා වැඩසටහන්කරණය)

Character Using In JAVA
Tuesday, 01 February 2011 16:59

Java Character Using Example

This is a example for How to use character in JAVA programing language. To compile this java program need to copy Terminal IO ( for input data from Keyboard) packge into your working directory.

 

Download Full Example Code :

 

/*eduLanka Online education web site of Sri Lanka
-------- w w w . e d u L a n k a . c o m ------------
java programs for University students - who follow courses  -  BIT  -  SLIIT and more
find more lessons in http://www.edulanka.lk  This e-mail address is being protected from spambots. You need JavaScript enabled to view it
this programs under GNU licence
*/

import TerminalIO.*;
public class Q6{
public static void main(String []arg){
KeyboardReader abc=new KeyboardReader();
String str1=abc.readLine("Enter statement ");
int total=0,charactors;

System.out.println("Statement You Entered is : "+str1);
charactors=str1.length();
System.out.println("No of Chars are is : "+charactors);   

for(int i=0;i<charactors;i++){
switch(str1.charAt(i)){
case 'a':
case 'e':
case 'i':
case 'o':
case 'u':

total++;
}
}

System.out.println("No of Vowels : "+total);


}
}

Last Updated on Tuesday, 01 February 2011 17:08
 

Add comment

Add comments relevant to this Article. මෙම ලිපියට අදාලව පමණක් අදහස් එකතු කරන්න.


Security code
Refresh

5.jpg

Download Toolbar

 
 

Most Popular Articles

Latest Articles

Copyright © 2005 - 2016 (ඉස්කෝලේ) eduLanka Online Education School of Sri Lanka