Giter VIP home page Giter VIP logo

First

技术在使用中提高,最简单的hello world代码,用java来表达。第一行 class 后面的名字,就是文件名的前半部分,第二行public 代表作用域为所有,公开,static表示不用实例化hello类,就可以调用main方法,void表示没有返回,String[] 表示程序的命令行参数字符串数组(因为一切都是对象,String可以统计数组的元素个数,通过下标可以访问具体元素,所以,这个参数就不需要c语言的两个参数,一个是命令行参数个数int argc ,一个是具体的参数,char** argv)args是数组名,约定成俗叫这个,你也可以叫ergouzi,编译通过没问题。最后的Ststem.out.println();类似于printf();不再说明。

时空旅者's Projects

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.