GithubHelp home page GithubHelp logo

java-foundation's Introduction

java-foundation

Introduction: JavaSE标准版。 JavaEE 企业级开发。 JDK: Java development kit. Include JRE. JRE: Java runtime environment. JVM: Java virtual machine.

Demo 1 Hello world

public class Hello { public static void main(String[] args) { System.out.println("Hello, World! "); } }

coding fundation: Notes Three types of notes: single line note: multiple notes: doc notes:

Identifiers and Keywords

data type extension

data type conversion

variable, constant, scope

basic operator

string connector +: System.out.println(a+b+""); String at back, the parameters will be executed and the "" will be ignored. System.out.println(""+a+b); String at first, the parameters will be combined.

x ? y : z If X is true, then the result is Y, if the x is false, then the result is z. example: int score = 80; String type = score < 80?"Pass":"Fail"

Flow control Scanner scanner.close(); I/O flow like scanner, must be shutted down after using. Cauz it takes resources.

scanner.hasNext() Use blank as the finish mark. cannot get string with blank scanner.hasNextLine() Use enter as finish mark. get all.

Structure flow water flow select flow

break and continue

java-foundation's People

Contributors

qilunbu avatar

Watchers

 avatar

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.