Git Product home page Git Product logo

java-intermediate's Issues

Java-Merhaba Dünya ve Değişkenler

/*

  • To change this license header, choose License Headers in Project Properties.
  • To change this template file, choose Tools | Templates
  • and open the template in the editor.
    */
    package ılkjava;

/**
*

  • @author Kemal
    */
    public class IlkJava {

    /**

    • @param args the command line arguments
      */
      public static void main(String[] args) {
      // TODO code application logic here
      System.out.println("Kemal");//Java'da büyük küçük harf önemlidir >> System gibi.
      int a=10;//int sayı değişkeni içindir.
      int kemal;//değişkenin içine bir değer atamadanda değişken yazılabilir.
      kemal=10;//diyerek sonradan bu değişkeni değerlendirebiliriz.
      System.out.println("Merhaba Dünya "+kemal);//diyerek değişkeni yazdırabiliriz.
      /*Çıktımız >>
      Kemal
      Merhaba Dünya 10 << şeklinde olacaktır.
      */

      kemal=20;//Burda değişkenin içindeki değeri sonradan değiştirdik Java'nın bir özelliğidir.Değişken bir kutu olarak düşünebilriz.
      System.out.println("Merhaba Dünya "+kemal);
      /*Çıktımız >>
      Merhaba Dünya 20 << Şeklinde olacaktır.
      */

      float pi=(float) 3.14;//float veri tipi ondalık sayılar içindir yalnız (float pi=3.14) yazarsak hata alrız 3.14 bir doubledır
      //double olan sayıyı floata çevirmek için atadığımız sayının önüne (float) yazdık. double pi=3.14 şeklinde yazabiliriz.
      //double ile float ın farkı veri boyutudur.

      String s="Benim ismim Kemal ";//String dizgiler içindir yanı harf karakteri içerir. >> 'S' büyük yazılır.

      System.out.print(s+" pi:"+ pi);// Çıktımız >> Benim ismim Kemal pi:3.14 << şeklinde çıkacaktır.

      //Kaynak/Source>>BilgisayarKavramları

    }

}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.