Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
alphabet
//'main' method must be in a class 'Rextester'. //openjdk version '11.0.5' import java.util.*; import java.lang.*; class Rextester { public static void main(String args[]) { String ss="pythonisinteresting"; char ch; int i,ln,c=0,a; Scanner sc=new Scanner(System.in); System.out.println("Enter the character"); ch=sc.next().charAt(0); ln=ss.length(); ss=ss.toUppercase(); for(i=0;i<ln;i++) { ch=(char)a; if(ss.charAt(i)==ch) c++; } System.out.println(c); } }
run
|
edit
|
history
|
help
0
JAVA İLE CELCIUS HESAPLAMA - Fahrenheit to Celsius with Java
Minimo quadrato somma di cubi
class and name
inheritance
fs
JAVA # DİZİ İLE EN BÜYÜK BULMA
jb11.0 threads tick tock
javaClassAr
Pattern1
1.5