Trending February 2024 # Learn How To Work With Layout In Indesign? # Suggested March 2024 # Top 7 Popular

You are reading the article Learn How To Work With Layout In Indesign? updated in February 2024 on the website Daihoichemgio.com. We hope that the information we have shared is helpful to you. If you find the content interesting and meaningful, please share it with your friends and continue to follow and support us for the latest updates. Suggested March 2024 Learn How To Work With Layout In Indesign?

Introduction to InDesign layout

InDesign Layout is the base of this software that means we create a layout for designing anything in this software. The layout may contain different types of design elements as well as text content. We arrange all the text content and design elements in an effective and meaningful way for expressing the purpose of that content and we do this by creating a layout with them. Layout depends on which platform they work of InDesign will use. So there are lots of things that incorporate this feature of this software and I will tell you the all-important aspect of it.

How Layout works in InDesign?

Having a good design is very necessary to create a layout which expresses the main purpose of content given by clients. So you first analyze the content and purpose of it.

Start Your Free Design Course

3D animation, modelling, simulation, game development & others

Such as Print which we use if we work on any project that will go with print media.

And if we go with print media then we have to set marigns as well as bleed area so that when the doucment go for the printing, it will not cut our main design or text content that are on the edge of the page. There are many more thing which we have to keep in mind if we design layout for print media.

The second preset is Web that means if you are going to design anything for web platform then we have to use web size doucment.

And we need not to worry about bleed and slag area this time.

Before start designing layout we should select the unit so that we can work according to project requirement.

For this time I will go with Letter size of document of Print preset and I will take Landscape as orientation of this document.

If you have number of page in your design then you can choose number of page from here. I will go with only 1 page for my design because it is just an overview for you about this topic.

Now I will take Type tool from tool panel and draw a text frame like this because I want to add a text content here first.

I have pasted this content here. Now what we have to do first is that do some formatting with this text content.

Now I will choose this good font for my text content here.

I also made some changese with heading and body copy of this text content. Setting text  content in your design layout is totally depends on your way of creativity with given content.

I will choose this beautiful image for this purpose. I have downloaded this image from chúng tôi You can take your own image for this purpose.

And place this image like this. We can add some effects and other variation to this image from Photoshop as per our choice but for this time I will leave it as it is.

Now I will again take type tool and type P as a single text to this text frame.

I will select text color box in Fill color of tool panel.

And change text color to this shade of green.

Now holding Ctrl + Alt button of keyboard I will increase the size of this letter P like this. This letter P is showing the important of Photoshop in this layout design.

And I will create a path at the side of text content of this letter.

Now take selection tool from tool panel and select both text content and this path.

Now the text will wrap around this path like this.

I will select this path and add some offset distance so that we have nice gap between this letter P and text content.

Now I will open Swatches panel and select Paper layer of it for changing color of this doucment page. One thing I would like to tell you that the background color which I am going to add this document page it only for appearance purpose it will not going to save with our document if we save it. There is another way for having background color with document page. You can check out my this article too.

I will set values of CMYK colors for having this shade of yellow and green for creating background color of my document.

Now If we switch to preview mode by pressing W button of keyboard you can see it is a nice layout design.

Conclusion

Here in this article I just gave you an overiew about how you can involve different element in your layout design for having effective result in it. You can also take different design element from other graphics designing software such as Photoshop, Illustrator and so on for having good composition for your design.

Recommended Articles

This is a guide to InDesign layout. Here we discuss how you can involve different element in your layout design for having effective result in it. You may also have a look at the following articles to learn more –

You're reading Learn How To Work With Layout In Indesign?

How Logging Work In Scala With Examples

Introduction to Scala Logging

Logging is used to maintain the logs of an application. It is very much required to monitor our application. Logging helps us to monitor the activity of our application in case if any error occurs we can check it from the logs and fix it. We can also get the information about what activity is going on into out application. we can have day to day task and full monitoring of applications. It also keeps track of the unusual errors or circumstances which can lead down fall of our application. Majorly it is very helpful for the developers to keep track of all the actions performed and the error occurs if any.

Start Your Free Software Development Course

Web development, programming languages, Software testing & others

In scala also we have three levels of logging which are debug, info and error. But we need to set this in our application configuration which level we want to use. This levels will be different according to different environment lets discuss them with syntax see below;

Debug level syntax; debug(our message) Info level syntax; info(our message) Error level syntax; error(our message)

In this way we can define them our application and we have to enable the log level accordingly and also make entries into configuration to make them work.

How Logging Work in Scala?

Scala logging is important and works like any other programming language. To keep track of our application we can use logging it can be used with different levels. To apply logging we can simply use scala logging for this. Scala provides us one logger class which is present inside this com.typesafe.scalalogging package also this class internally wraps the SLF4J logger. To use scala logging we have to pass or give a name to one of the method available in Logger object. We will see this by syntax see below;

We can pass the name in many different ways we can discuss them in details with one practice example for beginners for better understanding of logging concept;

1. In this we can pass the name directly to the Logger class.

vallogger_name = Logger("any_name")

In this syntax, we just have to give the name for the logger and one logging name pass as parameter inside the Logger class.

2. In this case, we can wrap our class by the implicit tag parameter.

vallogger_name = Logger[Your_Class_Name]

In this syntax, we are passing our class to the implicit tag parameter.

3. In this case, as we know this scala logging internally use SLF4J, so we can pass the name to the SLF4J logger instance also.

vallogger_name = Logger(LoggerFactory.getLogger("any_name"))

4. In this, we pass inside the class.

vallogger_name = Logger(classOf[Your_Class_Name])

Inside this package com.typesafe.scalalogging it provides us two traits which are Strict Logging and Lazy Logging and they are responsible to define the logger as Strict or Lazy.

Now we have one more this which is called Application logging: Application logging keeps track of our application at runtime and maintains all the logs. But sometime it may happen that we want all the logs of our application so we have to maintain the audit of logging and this can be achieved by storing our runtime application logs somewhere like database, into a disk, or search engine etc.

There are some things which all application wat to capture as a log;

As we talked about the log levels i.e. information, error, and warning.

The most important thing is the timestamp.

Some relevant messages make any sense after some time also.

The log levels define various things see below;

Error: Error is something which is serious and shows something wring with our application it is not behaving normal as expected. This can be anything like related to database connection; some services are not available or stopped due to some failure etc. So this is very important to fix and make our application again up and running.

Debug: Debug level is something like when we perform our diagnosis regarding the application. Like if we are making any request for data to the database so is it working properly and fetching all the data that is applicable regarding the request we have made.

Trace: This is a more detailed version of the debug level. When we want to know the very precious value than we go for Trace in scala logging.

Examples of Scala Logging

In this example, we are using Print Writer and File to maintain our logs in scala. We will create a file into our system and going to maintain the logs there.

Example #1

Code:

import java.io.{File, PrintWriter} object LoggingDemo extends App { val pw = new PrintWriter(new File("logging_demo.log")) pw.write("logging file has been created") pw.write("loggers working fine") pw.close() }

Example #2

In this example, we are using slf4j to log the activity of our program. We have using different methods available for logging like debug, error, and info.

Code:

import org.slf4j.LoggerFactory object Main extends App { valmy_logger = LoggerFactory.getLogger(getClass.getSimpleName) my_logger.info("Here we are using info method !!!! ") my_logger.debug("Here we are using debug method !!!! ") my_logger.error("Here we are using error method !!!! ") println("logges been created. !!!") }

Output:

Conclusion

We use logging for monitoring purposes. Which helps us to behave our application as expected. We can also provide different logging levels as well. We can maintain any number of lines to log out application activity we can also store them somewhere into the file for the future purpose also these file representation makes it easier to understand.

Recommended Articles

We hope that this EDUCBA information on “Scala Logging” was beneficial to you. You can view EDUCBA’s recommended articles for more information.

How Variables Work In Lua With Examples?

Definition of Lua Variables

The Lua variable is placing the name to a memory location and store the data of the application. The Lua variable is giving the label to the storage position and helps to manipulate the storage data. The Lua variable helps to refere the memory location to contain the letters, digits, and symbols as information. The Lua variable works as a container to store the information and avoid multiple times use of single information. The Lua variable is the name to store the data with a specific name and use for entire Lua coding as a reference.

Start Your Free Software Development Course

Web development, programming languages, Software testing & others

Syntax

The Lua variable has three types according to the use, scope, and priority of the variable.

1. The global variable:

Variable_Name = variable value Example: Stdnmbr = 1 Variable_Name = variable value; Example: Stdnmbr = 1; Variable1, Variable2 = value1, value2 Example: Std1, std2 = 1, 2 Variable1, Variable2 = value1, value2; Example: Std1, std2 = 1, 2;

The global variable is declaring variable name which is using entire coding.

The global variable does not need any keyword to declare the name.

The global variable identifies using only variable names and their values.

2. The local variable:

The local variable syntax is below.

local Variable_Name = variable value Example: local Stdnmbr = 1 local Variable_Name = variable value; Example: local Stdnmbr = 1; local Variable1, Variable2 = value1, value2 Example: local Std1, std2 = 1, 2 local Variable1, Variable2 = value1, value2; Example: local Std1, std2 = 1, 2;

The local variable is declaring variable name inside of the method, chunk, and function.

The variable is used the “local” keyword to declare the local variable name.

3. The table variable:

The table variable syntax is below.

Variable_name = {}

The table variable initializes the Lua table.

Variable_name[ index ] = “information”

The table variable assigns the value to the index.

Variable_name = nil

The table variable removes the reference of the table.

The table variable is using to create a Lua table in the code.

The variable and Lua table do not have any fixed relation for data storage.

The variable used to create a table, assign value and remove the reference table.

The variable contains every value but not the nil value of the table. The nil value is used to remove the table reference.

How to work variables in Lua?

Step 1:

The Lua text editor, Lua compiler, and Lua interpreter install in your computer as per the operating system and software version.

Or

If you do not have the software, then you can use Lua Online IDEs for coding and start Lua programming.

Step 2:

The Lua file creates with the .lua extension and writes a source code.

Step 3:

If the user required a global variable, then write Lua global variable syntax.

Stdnmbr = 1

If the user required a local variable, then write Lua local variable syntax.

local Stdnmbr = 1

If the user required a table variable, then write Lua table variable syntax.

Stdnmbr = {} Stdnmbr[1] = “Lua”

a = 11; print(“global variable: “, a) local x = 10 print(“local variable: “, x)

Examples

Let us discuss examples of Lua Variables.

Example #1

The Lua global variable with value example and output.

Code:

a1 = 11; print("global variable: ", a1) x1 = 12; print("global variable: ", x1) y1 , z1 = 13, 14 print("global variable: ", y1, z1) b1 , c1 = 16, 11; print("global variable: ", b1, c1) d1, e1 = print("global variable: ", d1, e1) f1, g1 = 21 print("global variable: ", f1, g1)

The multiple variable name and value can use a single time to declare variables. If the value is not assigned but the equal sign is assigned to the variable name then the variable value becomes nil.

Output:

Example #2

the Lua local variable with value example and output.

Code:

local a1 = 11; print("local variable: ", a1) local x1 = 12; print("local variable:: ", x1) local y1 , z1 = 13, 14 print("local variable:: ", y1, z1) local b1 , c1 = 16, 11; print("local variable:: ", b1, c1) local d1, e1 = print("local variable:: ", d1, e1) local f1, g1 = 21 print("local variable:: ", f1, g1)

Output:

Example #3

the Lua table variable with value example and output.

Code:

luaVariable = {} print(" initialize table using variable", luaVariable) luaVariable[2] = "lua" print(" Assign value 1", luaVariable[2]) luaVariable["tut"] = "tutorial" print(" Assign value 2", luaVariable["tut"]) luaVariable = nil print(" remove the reference", luaVariable)

Description:

If we initialize the table using a variable then we get the memory location of the table. If we assign nil value to the variable then the reference is removed and the variable becomes nil.

Output:

Example #4

the Lua variable name with case sensitive example and output.

Code:

local _a1 = 11; print("Lua case sensitive variable: ", a1) print("Lua case sensitive variable: ", _a1) print("Lua case sensitive variable: ", _A1) local A1 = 12; print("Lua case sensitive variable:: ", a1) print("Lua case sensitive variable:: ", A1) local y , z_1 = 13, 14 print("Lua case sensitive variable:: ", y, Z_1) print("Lua case sensitive variable:: ", y, z_1) m , s = 43, 44 print("Lua case sensitive variable:: ", S, M) print("Lua case sensitive variable:: ", s, m)

Description:

You can see the above example with variable names. The s and S letter is different for language due to Lua is case sensitive language. The underscore symbol and uppercase and lowercase letter can use to start the variable name. The number is not allowed to start variable name but after the first letter allowed to use in the variable name.

Output:

Example #5

the Lua variable example and output.

Code:

luaVariable = {"online", "habit", "to", "learn"} print("write table variable value using global variable") for globlev = 1, 4 do print(luaVariable[globlev]) end print("write the relation between Lua local variable and Lua global variable") glv = 12 local lv = 15 if lv < 16 then local glv = 12 print(glv + 5) else print(glv); end print(glv);

Output:

Conclusion

The Lua variable is the key factor of the memory location and data storage in the Lua application. The Lua variable helps to initialize the data, assign, modify, and return the data or information. The Lua variable avoids the complication of the memory location and data storage.

Recommended Articles

We hope that this EDUCBA information on “Lua Variables” was beneficial to you. You can view EDUCBA’s recommended articles for more information.

Top 6 Nativescript Layout With Examples

Introduction to NativeScript Layouts

Web development, programming languages, Software testing & others

These layout containers act as parent components and can have one or more child components. Child components can be arranged based on the techniques provided by the parent container.

Top 6 NativeScript Layouts with Examples

Below are the 6 NativeScript Layout containers,

Absolute Layout,

Dock Layout,

Grid Layout,

Stack Layout,

Wrap Layout,

FlexBox Layout

We shall see each of the layout containers, syntax of each, and how it works.

1. Absolute Layout Container

It uses 4 properties of children for positioning,

left: It is the placement of children from origin moving sidewards in the x-direction.

top: It is the placement of children from origin moving downwards in the y-direction.

width and height: It is the width and height of children.

Syntax(Absolute Layout):

Example #1: Absolute Layout Container Example

Output:

Here, we are displaying an Absolute Layout container of NativeScript. Width and height are defined to be 250. The top refers to the placement in the y-direction whereas the left refers to the placement in the x-direction.

2. Dock Layout Container

It is one of the useful containers if the user wants to have the layout pinned to any part of the screen, i.e., enables the child container to dock inside the parent container. Each side of the container can be docked. It uses the dock properties of children for docking; bottom: It docks the child component at the bottom corner of the screen.

top: It docks the child component at the top corner of the screen.

left: It docks the child component at the left corner of the screen.

right: It docks the child component at the right corner of the screen.

Syntax (Dock Layout):

Example 2: Dock Layout Container Example

Output:

Based on the layout, we can easily say that this layout is docked at left, top, bottom, and right. Here yellow color is the background of the complete layout.

3. Grid Layout Container

It is one of the complex components and allows the arrangement of complicated views on top of each other, in a tabular format with rows and columns.

Properties to be noted here are,

row and column: It is the row and column number

rowSpan and colSpan: It is the total number of or rows or columns that the child component spans within the layout.

Syntax (Grid Layout):

Example 3: Grid Layout Container Example

Output:

So here Grid layout has been showing, it is displayed in the form of rows and columns.

4. Stack Layout Container

It will organize its child elements in one-dimensional line, either in horizontal or vertical, depending upon the orientation set.

Syntax: (Stack Layout)

Example 4: Stack Layout Container Example

Output:

Here, we have shown the Stacked layout in a horizontal manner.

5. Wrap Layout Container

It is used to wrap the contents on new rows and columns depending upon the screen size.

Syntax: (Wrap Layout)

Example 5: Wrap Layout Container Example

Output:

Here, we have shown a wrapped layout in a vertical manner.

6. FlexBox Layout Container

It has a lot of properties,

flexDirection: It is the direction in which child components are arranged. Possible values for flexDirection are

row and column: Child elements arranged side by side in a row and one below another in the column.

row-reverse and column-reverse: Child elements arranged side by side in a row and one below another in the column, in the reverse direction.

flexWrap: It represents whether child elements will be rendered in a single row or column or flow to multiple rows with wrapping set by the flexDirection.

wrap: It wraps the child elements if there is no space available in the flexDirection.

wrap-reverse: Similar to wrap but in the reverse direction.

justifyContent: It represents how the child elements are arranged based on each other and the overall structure.

flex-end: Packs child element towards the end of the line.

space-between: Packs child element by distributing evenly in line

space-around: It is similar to space-between but packs child components evenly in line as well as around them.

Syntax:

Example 6: Flex Box Layout Container example

Output:

Here, we have implemented FlexBox Layout with flexDirection as the reverse. We also have flexWrap and also justifyContent.

Conclusion

With this, we shall conclude our topic ‘NativeScript Layouts’. We have seen what NativeScript Layout is and what are all the types included in these layouts. There are around 6 types of NativeScript Layouts which we have implemented, each with an example here to make you understand the concept in a better way.

Recommended Articles

This is a guide to NativeScript Layouts. Here we also discuss the definition and 6 NativeScript layouts along with different examples and their code implementation. You may also have a look at the following articles to learn more –

How Sizeof() Operator Work In C++ With Examples

Introduction to C++ sizeof()

The sizeof() is an operator in C and C++. It is an unary operator which assists a programmer in finding the size of the operand which is being used. The result of this operator is an integral type which is usually signified by size_t. This operator is usually used with data types which can be primitive data types like integer, float, pointer, etc. It can also give size of complex datatypes like structure, union, etc. It is a compile time operator which will tell the size of any data type and compute the size of operand.

Start Your Free Software Development Course

Web development, programming languages, Software testing & others

Below is the syntax of using sizeof():

sizeof(type) sizeof expression

The sizeof function in the first type, will give the output as an size in bytes of the object of the type which is sent. The second type is the size in bytes of the object which is in the type of expression. The size will be the size once the expression is evaluated. In both these versions the constant expression of the standard type that is size_t.

How sizeof() Operator work in C++?

The sizeof() operator can be used to find the size of datatype or expressions. They work in a very easy manner of taking these as arguments and work on them by returning the size in bytes.

Code:

using namespace std; int main() { cout << “Size of char : ” << sizeof(char) << endl; cout << “Size of int : ” << sizeof(int) << endl; cout << “Size of expression 5 + 8 is : ” << sizeof(5 + 8) << endl; return 0; }

As stated earlier the sizeof function will help us in getting the size of every datatype. Hence it uses these data types as an argument and return the data size of each data type. We have also taken size of expression where we are adding 2 integers. It will calculate these and the result will also be an integer. Hence the output for this will be also 4. The output of above function and code will be the number of bytes each variable uses. To check a few the output for char will be as below.

Output:

Examples of C++ sizeof()

Given below are the examples mentioned:

Example #1

Operand as a data type.

Code:

using namespace std; int main() { cout << “The size of char data type is ” << sizeof(char)<<“n”; cout << “The size of int data type is ” << sizeof(int)<<“n”; cout << “The size of float data type is “<< sizeof(float)<<“n”; cout << “The size of double data type is ” << sizeof(double)<<“n”; return 0; }

Output:

Example #2

Operand as an expression.

Code:

using namespace std; int main() { int a = 7; float d = 15.21; cout << “The addition of int and float is a float as follows: ” << a + d; cout << “nThe size of the expression is ” << sizeof(a + d); return 0; }

The above code with return the size of the data type of the resulting expression. Here we have declared two variables. One variable is an integer and the second variable is a float. We are now adding these two variables in the expression of which we will be finding the size of. The result of this expression will be a float. Hence the sizeof will be the size of float data type.

Output:

Example #3

Finding number of elements in the array.

Code:

using namespace std; int main() { int array1[] = { 1,5,76,89,23,06 }; cout << “The number of elements which are present in the array are : “ <<(sizeof(array1) / sizeof(array1[0])); return 0; }

In addition to giving the size of expressions and data types, the sizeof operator can also be used to find the number of elements in an array. Here we have defined an array ‘array1’. We have a few elements added to it. In order to get the count of these elements and get exactly how many elements are present in it we can simply make use of the sizeof operator.

We specify the array name and the first index that is array1[0] which helps us in starting he count from beginning. It will start from index 0 and count till the end. Once it reached the end it will display the number of elements. It will be returned by this sizeof() function that we have.

Output:

Conclusion

The sizeof() operator is a function which returns the size of any data type, expression, array, etc. It takes the data type or expression as a part of argument which is mandatory and returns the result which is size of that data type in bytes. If it is an array it will return the number of elements present in it. It is a very useful function when we have to allocate memory. We can calculate the size and allocate memory as per requirement and as a result save a lot of space which otherwise will be occupied.

Recommended Articles

This is a guide to C++ sizeof(). Here we discuss how sizeof() operator work in C++ along with examples respectively. You may also have a look at the following articles to learn more –

How Does Substring Work In Scala With Examples?

Introduction to Scala Substring

As the name suggests, a scala substring is used to get the substring from the given input. We can find out the substring by specifying any index. Substring function can be call on any string. But have to pass the index in order to use the substring method in Scala. There may be some requirement where we need to find the substring present inside the string input itself so we can go with the substring method in scala. We have two types of methods available in scala to get the substring from the given string. In the coming section, we will discuss more about this method in detail.

Start Your Free Software Development Course

Syntax

As substring string is a method available in scala used to get the substring from the specified index, Let’s see its syntax for better understanding of it and how to use this method on programming see below;

substring(int index)

As we can see in the above syntax, this method takes one parameter as the input type. We can call this method on any String input. Let’s see one practice syntax to understand its real usage see below;

val demostr  = "some string here" demostr.substring(3) How does substring work in Scala?

As of now, we know that the substring method is used to get the string from the string in scala. It is an in build method available in scala, so we can directly use this without being involved in any library in our program. But we can find out the string by mentioning the index while using this method. This method takes one parameter as the input. We have two substring method available in scala based on the input parameter we pass. Now we will see each of them in details about the method signature and its return type; for more understanding, see below;

Method signature

1. String substring(int begningIndex): This is the method signature of substring function as per the scala doc. In this method, we are passing one parameter as the input here. Let’s discuss the input param in detail see below;

int begningIndex: This parameter is used to specify the index of the substring that needs to get from the string input. This is the beginning index of the substring so that it will return the string at the end of the input string from the beginning index. For instance, we can see one example to for better understanding see below;

Example:

object Main extends App{ val str = "hellotoallbye".substring(10) println(str) }

In the above code lines, we create one string named ‘str’ followed by calling the substring method on it. But here, we are passing ’10’ as the starting index for the substring. So it will start from 10 and return us the result at the end of the string. Here we are not mentioning any end index.

2. String substring(int begningIndex, int endIndex): In this method, we are passing two input parameter, and this method is also used to get the substring from the given string input. Only the method signature is different; we can call it method overloading in terms of object-oriented programming language. Let’s discuss each of the parameters in details for better understanding see below;

int begningIndex: This parameter issued to assign the value which will act as the starting point of the substring method in scala. It will work in the same way as before without any difference.

int endIndex: This parameter issued to specify the end index for the substring. Which means it will return the substring at this end index only. This index will act as the ending point for the substring where our substring will end and complete. We will see one practice example of how to use this method while programming see below;

object Main extends App{ val str = "hellotoallbye".substring(8, 10) println(str) }

As you can see in the above lines of code, we are creating one string here and calling the substring method, but this time it will return as the string between the specified index only. This will act as the starting and endpoint of the substring here.

3. return type: Scala’s substring method always returns a new string between the specified index of the given string.

Examples

Here are the following examples of Scala Substring mention below:

Example #1

In this example, we are calculating the string from the beginning index only using substring in scala.

Code:

object Main extends App{ val str1 = "i am string one as input" val str2 = "i am string two as input" val str3 = "i am string three as input" val str4 = "i am string four as input" val str5 = "i am string five as input" val result1 = str1.substring(13) val result2 = str2.substring(11) val result3 = str3.substring(2) val result4 = str4.substring(5) val result5 = str5.substring(15) println("Result one is  :: " ) println(result1) println("Result two is  :: " ) println(result2) println("Result three is  :: " ) println(result3) println("Result four is  :: " ) println(result4) println("Result five is  :: " ) println(result5) }

Output:

Example #2

In this example, we are using the start and end index to get the substring using the substring in scala.

Code:

object Main extends App{ val str1 = "i am string one as input" val str2 = "i am string two as input" val str3 = "i am string three as input" val str4 = "i am string four as input" val str5 = "i am string five as input" val result1 = str1.substring(12, 16) val result2 = str2.substring(12, 16) val result3 = str3.substring(12, 16) val result4 = str4.substring(12, 16) val result5 = str5.substring(12, 16) println("Result one is  :: " ) println(result1) println("Result two is  :: " ) println(result2) println("Result three is  :: " ) println(result3) println("Result four is  :: " ) println(result4) println("Result five is  :: " ) println(result5) }

Output:

Conclusion

By the use of it, we can get the substring from the given string. It will always return us a new string. Also, it is the build method available in scala, so it is easy to use and readable like any other programming language like java.

Recommended Articles

We hope that this EDUCBA information on “Scala Substring” was beneficial to you. You can view EDUCBA’s recommended articles for more information.

Update the detailed information about Learn How To Work With Layout In Indesign? on the Daihoichemgio.com website. We hope the article's content will meet your needs, and we will regularly update the information to provide you with the fastest and most accurate information. Have a great day!