Skip to content

IslandTropicaMan

Software, Pc Game and Programming Languages

Python Example – Group telephone number using the re module

Posted on March 14, 2023March 14, 2023 By IslandT 1 Comment on Python Example – Group telephone number using the re module

Below Python example will use the re module to group the telephone number without the ‘-‘ sign and the period ‘.’. Let’s say the phone number has been written in this manner. 123-456-7810. The below python program will group the numbers by taking out both the ‘-‘ sign and ‘.’. The match array now stored…

Read More “Python Example – Group telephone number using the re module” »

Python, Python Tutorial

Java ArrayDeque example

Posted on February 20, 2023 By IslandT

Below Java program will use ArrayDeque to keep a collection object and then prints those elements out in descending order. The outcome is as follows:-

Java Generic

Accept pipeline object from a function in Power Shell

Posted on January 19, 2023January 19, 2023 By IslandT

The below power shell function will accept a pipeline object and display it on the command prompt. By setting the ValueFromPipeline property of a parameter to true a function can thus accept an object through a pipeline within the PowerShell command prompt!

Power Shell

The Mandatory property in PowerShell Parameter attribute

Posted on January 17, 2023January 17, 2023 By IslandT

The below PowerShell program will force the user to specify the value of the two variables by setting the Parameter attribute in a function to true. If the user forgets to enter the value of both or either variable of the function then PowerShell will ask the user to enter them.

Power Shell

Here is how to create a collection object which extends ArrayList

Posted on January 1, 2023January 1, 2023 By IslandT

The below Java example shows how to create a collection object which extends ArrayList. The below program does two things 1) Adds in a few string objects and one in between 2) Finds the index of a particular string object in the collection object. The outcome is as follows:-

Java Collection

Here is how to write a conditional type chaining program in TypeScript

Posted on December 28, 2022December 28, 2022 By IslandT

In the below typescript program, I am applying conditional type chaining to display the outcome on the output console. Conditional types can get chained together to return a specific type. The outcome of the program is as follows:-

Type-Script

Here is how to construct a type based on a subset of properties of another type in Typescript

Posted on December 26, 2022December 26, 2022 By IslandT

In order to create a type from another type in TypeScript, used the Pick mapped type which will construct a type based on a subset of properties of another type as follows:- As you all can see Pick allows us to pick properties that require us to create our type from the original type! The…

Read More “Here is how to construct a type based on a subset of properties of another type in Typescript” »

Type-Script

Use function to replace value of global variable in PowerShell

Posted on December 26, 2022 By IslandT

Here are the steps to replace the value of a global variable in PowerShell:- 1) Create a function like this 2) Before the function calls 3) Next call the above function with a dot in front of it and then replace the value of the global variable with the one specified. The PowerShell’s global variable…

Read More “Use function to replace value of global variable in PowerShell” »

Power Shell

Here is how to iterate through collection using for loop in Kotlin

Posted on December 26, 2022 By IslandT

The below Kotlin program will iterate through the collection using for loop. The above Kotlin program will display the following outcome:-

Kotlin

Here is how to find factorial of a number in Kotlin

Posted on December 25, 2022December 25, 2022 By IslandT

Below is an example to find the factorial of a number in Kotlin programming language using the do-while loop and using the scanner object to read the user input. Run the above Kotlin program to get the following outcome:-

Kotlin

Posts navigation

1 2 … 15 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 powershell power shell 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

  • Python Example – Group telephone number using the re module
  • Java ArrayDeque example
  • Accept pipeline object from a function in Power Shell
  • The Mandatory property in PowerShell Parameter attribute
  • Here is how to create a collection object which extends ArrayList

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 © 2023 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