Scala Programming: Learn Scala Programming Fast And Easy!

Scala Programming: Learn Scala Programming Fast And Easy!
by Matthew Gimson / / / PDF, EPUB


Read Online 2.7 MB Download


This book is an exploration of the Scala programming language. It begins by explaining the language to the reader, including its origin, uses and benefits. The book then guides the reader through setting up an environment ready for programming in different operating systems including Windows, Linux, and Mac OS X. The syntax which is used in all the Scala programs is explored. You will understand the various parts which make up a Scala program. Variable declaration in Scala is also explored. On reading this book, you will understand how to use the two keywords, that is, var and val to declare your variables and make them either mutable or immutable. You will also understand the difference between the two types of variables. The different types of operators which are supported in Scala are discussed in detail. Sample programs are used to demonstrate how these operators can be used practically. Decision making statements are also explored in this book, thus, after reading this book, you will be in a position to create programs which are capable of making logical decisions. Loops are also explored. You will learn how to create certain parts of code to be executed a number of times. You will learn to create functions with or without parameters. Closures, which are a special type of function, are also explored. You will also learn how to use and perform various operations on strings. The following topics are explored in this book: Setting up the Environment A Scala Basic Syntax Variables in Scala Operators in Scala Decision making in Scala Programming Loops in Scala Functions in Scala Closures in Scala Strings in Scala

views: 69