This book contains GOLANG BASICS AND JAVA coding exercises for beginners. It's useful Job interviews and college examinations. This book only for absolute beginners.
TABLE OF CONTENTS
Introduction Go Language Go: Hello World Application Go language: Build executable Go: Primitive Data Types Go language: Print value and type of a variable Go language: Initialize multiple variables in one line Go Language: Constants Go language: iota identifier Go Language: Type Conversion Go language: Type Inference Go language: strings Go language: concatenate strings Go language: multi line strings Go Language: Arrays Go Language: Arrays are passed by value Go language: Slices Go language: Slices are passed by reference Go language: Iterate over a slice using range keyword Go language: Get slice from a slice Go language: Append an element to a slice Go Language: Map data structure Go language: Define map using literal notation Go language: len : Get number of items in a map Go Language: Map: Check whether an item exists in map or not Go language: Delete item from the map Go language: Print all the keys of map Go language: Print key, value from map Go language: if statement Go language: if-else statement Go language: if statement: combine initialisation and condition evaluation in same line Go Language: switch statement Go language: switch without an expression Go Language: for loop Go Language: Use for loop as while loop Go language: Print elements of array Go language: Iterate over a map Go language: Read data from console or user Go Language: Create a function Go Language: Pass by Reference Go language: Variadic Functions Go language: Return a value from function Go language: Anonymous functions Go Language: Functions continued Go Language: return Error from a function Go Language: Structs Go Language: Construct an object to a structure using & Go language: constructor functions JAVA CODING PRACTICE EXERCISES Java String Exercises Get the character at the given index within the String Test if a given string contains the specified sequence of char values Compare a given string to the specified string buffer Check whether a given string ends with the contents of another string Get the contents of a given string as a byte array Java Array Exercises Sum values of an array Calculate the average value of array elements Test if an array contains a specific value Remove a specific element from an array Insert an element into an array JAVA BASIC EXERCISES Swap two variables Print a face Fahrenheit to Celsius degree Inches to meters Adds all the digits Print the number of years and days Compute (BMI) Print the sum Find the greatest of three numbers Display the multiplication table Display the pattern Print a pattern like a pyramid Print the sum Divide two numbers