Friday , December 13 2019

Monthly Archives: October 2015

JAVA #18 – Funtions/Methods in Java

Defining Methods The only required elements of a method declaration are the method’s return type, name, a pair of parentheses, (), and a body between braces, {}. More generally, method declarations have six components, in order: Modifiers—such as public, private, and others you will learn about later. The return type—the …

Read More »

JAVA #17 – Jump Statement (break,continue and label) in Java

The break Statement The break statement has two forms: labeled and unlabeled. You saw the unlabeled form in the previous discussion of the switch statement. You can also use an unlabeled break to terminate a for, while, or do-while loop   package breakcountinue; // Break Statement with Label public class …

Read More »

JAVA #16 – Enum Type in Java

Enum Types An enum type is a special data type that enables for a variable to be a set of predefined constants. The variable must be equal to one of the values that have been predefined for it. Common examples include compass directions (values of NORTH, SOUTH, EAST, and WEST) …

Read More »

C# – Learning some .NET Methods (Maths, Split)

In this lesson we will learn more about Methods. We will learn how to use some maths methods like Sin, Cos, Tan, Round, Pow and Sqrt. We will also learn how to split string in C#.Topics covered: Topics covered: Maths functions: Sin(), Cos(), Tan(), Round(), Pow(), Sqrt() string Split() static void …

Read More »