Scala getting started

Source: Internet
Author: User

Starting with some simple coding methods, I learned many Scala features, so even when I started, I got a lot more things.

  • Basic Environment and instructions
Simple small programs can use Scala commands, which can be handed over to scalac as soon as possible.
  •  

    • Refers
      Interaction Environment
    • Scala
      Command
    • Scalac
      And FSC

  • Materials, changes, Operations
All things are objects, and all operations are methods.
  •  

    • Material-type Indexing
    • Change
      Data and constant data

    • Operation
      Method

    • Data
      Value operation

    • Operation Order and relationship

    • Master
      Console egress

  • Internal Control Structure
The formula has a round return value, but no round. That's right! Scala does not have break or continue.
  •  

    • If
      Formula

    • For
      Formula

    • While
      Incircle

    • Match
      Formula

    • Try
      Formula

  • Correspondence, Class
Start with the customization of some orders, and spend more on the back.
  •  

    • Ticket
      Function

    • Differences between orders
    • Unit
      Example object

  • Common objects
During the period of change, scala has more features first.
  •  

    • String
    • Array
    • List
      And tuple

    • Set
      And map


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.