String Slicing in Java & Python

preview_player
Показать описание
String Slicing in Java & Python

String Slicing is nothing but getting some part of string using start and end index.

In Java,

public class Stringslice {
public static void main(String args[])
{
String S1 = new String("BISENTHILATOR");
String S2 = new String("DRIVENKATRINATION");
}
}

In python,

S1="BISENTHILATOR"
S2="DRIVENKATTINATION"
print(S1[2:9])
print(S2[3:9])

Output of the program

SENTHIL
VENKAT

#itmemes #programmingmemes #codinglife #coding #programming #funnymemes #tamilmemes #tamilreels #java #python

Under the Copyright Disclaimer under Section 107 of the Copyright Act 1976, there is an allowance for ‘fair use’ of copyrighted material for such purposes as education and research, scholarship, criticism, news reporting, comment, and teaching. Fair use copyright disclaimer refers to the use allowed by the copyright statute, which would otherwise be looked at as an infringement.

Рекомендации по теме
Комментарии
Автор

Your videos have been instrumental in my programming journey. Thank you for sharing your expertise!

MyCodingDiary