Programlama | Programlama Dilleri | C Programlama Dili |C++

Hata
  • XML Parsing Error at 1:82. Error 9: Invalid character
Anasayfa Programlama Java Karakter Say?s?n? Bulma


Karakter Say?s?n? Bulma

Java ile yap?lan bu programda kullan?c?dan al?nan bir ifade de kaç karakter oldu?u hesaplanm??t?r.

 

  1. /*
  2.  * To change this template, choose Tools | Templates
  3.  * and open the template in the editor.
  4.  */
  5. package javaapplication7;
  6.  
  7. import javax.swing.JOptionPane;
  8.  
  9. /**
  10.  *
  11.  * @author NEO
  12.  */
  13. public class JavaApplication7 {
  14.  
  15.     /**
  16.      * @param args the command line arguments
  17.      */
  18.     public static void main(String[] args) {
  19. String x =JOptionPane.showInputDialog(null,"metin gir");
  20. int ks= x.length();
  21. JOptionPane.showMessageDialog(null,ks);
  22.  
  23.     }
  24. }

Yorumlar (0)
Sadece kayıtlı kullanıcılar yorum yazabilir!
Son Güncelleme ( Cuma, 11 Ocak 2013 00:08 )  
404 Not Found

404

Not Found

The resource requested could not be found on this server!


Proudly powered by LiteSpeed Web Server

Please be advised that LiteSpeed Technologies Inc. is not a web hosting company and, as such, has no control over content found on this site.