Skip to content

IslandTropicaMan

Software, Pc Game and Programming Languages

Class constructor example in TypeScript

Posted on November 10, 2022November 12, 2022 By IslandT

In this article, I am going to create a class with a constructor which will accept three parameters and then print them on the screen. First of all, I need to create an interface that will get extended by the class later on! The user and the year parameters of the interface are optional and…

Read More “Class constructor example in TypeScript” »

Type-Script

How to implementing interface in TypeScript

Posted on November 9, 2022 By IslandT

Below is an example of implementing the interface in TypeScript. Let’s say you have an IComputer interface as follows:- The above interface has three variables, two are optional variables that a class does not need to implement if it does not want to. The undefined type is used in that class to avoid errors if…

Read More “How to implementing interface in TypeScript” »

Type-Script

The finance calculator project in Python

Posted on November 9, 2022November 12, 2022 By IslandT

I would like to introduce to you all my latest project plan which is to build a finance calculator to calculate various financier-related issues which include my previous solution to find the present and the future sum of money in it. In this article, I will start building the application with the first mission, which…

Read More “The finance calculator project in Python” »

Python, Python Tutorial

Find the size of each files in a folder in PowerShell

Posted on November 5, 2022 By IslandT

The below PowerShell command will display the size of each text files within a folder. As you can see I am using the ‘foreach’ statement of PowerShell to loop through each text file within a folder in your computer and prints out their name and file size accordingly. There is only one file in the…

Read More “Find the size of each files in a folder in PowerShell” »

Power Shell

The in operator in TypeScript

Posted on November 5, 2022 By IslandT

The in-operator is used to check whether a property within an object with a particular interface type exists or not. As you can see the “brand” property does exist within the above object with the type ILaptop and thus the brand of that object will be printed on the terminal screen!

Type-Script

Declared optional properties within TypeScript interface

Posted on November 3, 2022November 3, 2022 By IslandT

You can actually declare optional properties within the typescript interface that do not need to be declared by the object with that interface type as follows:- Now the object with that type of interface does not need to declare the properties of the interface with ‘?’ symbol in front of them if that object does…

Read More “Declared optional properties within TypeScript interface” »

Type-Script

Create TypeScript Interface

Posted on November 3, 2022November 3, 2022 By IslandT

The following lines of code will create an interface in TypeScript:- As you can see, the interface will declare the type of each element within it! The following lines of code will create an object based on the above interface. Once the interface has been declared you can use it just like the primitive types…

Read More “Create TypeScript Interface” »

Type-Script

Command to find the number of text file in PowerShell

Posted on November 3, 2022November 3, 2022 By IslandT

If you want to find the number of text files within a computer’s folder then you can use the following PowerShell command:- The above PowerShell command uses the switch statement to loop through all the files within the txt folder which is under the E drive and each time one will be added to the…

Read More “Command to find the number of text file in PowerShell” »

Power Shell

Limiting the parameters that can be used within a TypeScript function

Posted on November 3, 2022 By IslandT

If you want only a certain value of the parameter that can be used inside your TypeScript function then you can use the literal type to do so as shown in the following lines of code. The TypeScript program above will generate the following error during compilation because 6 is not the permitted parameter inside…

Read More “Limiting the parameters that can be used within a TypeScript function” »

Type-Script

Create own generic types in Java

Posted on November 2, 2022November 2, 2022 By IslandT

In the below Java program, I am creating my own Java generic type of class which will be used again in the main method. The above Java program will insert a few words into a private ArrayList and then display them again on the command prompt.

Java, Java Generic

Posts pagination

Previous 1 … 4 5 6 … 16 Next

IslandTropicaMan

↑ Grab this Headline Animator

Categories

  • C program
  • Gaming
  • Java
  • Java Collection
  • Java Game
  • Java Generic
  • Javascript
  • Kotlin
  • Power Shell
  • Python
  • Python Tutorial
  • Software
  • Swing
  • Type-Script

Get new posts by email

ArrayList button class combo box earning project enum for loop function interface Java javascript Javascript Iterable javascript iteration result object Javascript iterator Javascript promise kotlin Matplotlib message box Multitask power shell powershell powershell switch pycharm pygame pygame drawing pygame moving circle pygame project chess pygame rectangles pygame update method python python application python class python function python project python tutorial ShotCut.software Stockfish Swing tkinter tuple typescript typescript function visual studio code while loop wxPython

  • How to use case sensitive version of comparison in power shell
  • Create multiple assignments in PowerShell
  • How to compile and run c program in visual studio code
  • How to print numbers from a range in Kotlin
  • How to output words on a Power Shell screen?

Recent Comments

  1. Rainer on Python Example – Group telephone number using the re module
  2. Rainer Mansfeld on Python Example — Write a python program which will save the user inputs into a Pickle file
  3. Rainer Mansfeld on Python Example — Write a Python program to find the permutation of an event
  4. Rainer Mansfeld on Python Example — What is the total ASCII values of characters in the Hello World string
  5. Jules on Python Tutorial — Chapter 9

Copyright © 2025 IslandTropicaMan.

Powered by PressBook WordPress theme

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT