JAVA CODE 🧑🏻‍💻👩🏼‍💻


എന്തിനോ ഉള്ള CODE 😅😹

This site is only for STUDY PURPOSE 🤭

Hu

  1. Write a Java Applications to extract a portion of a character string and print the extracted string.

import java.util.Scanner; public class substrng

public static void main(String args[])

Scanner in = new Scanner(System.in); System.out.print(“Enter string: “);

String s = in.nextLine(); int lens.length():

System.out.print(“Enter start index : “);;

if(n < 0 || n >= len) index”);

{

fiom tkinter import.

a-Tk()

def add():

jet

use-el.

paa-e2.get()

print (use, pas)

11- Label (a, text=”username”)

11.grid(row-0,column=0)

el Entry(a, text-“”)

el.grid(row-0,column-1)

12 Label (a, text=”password”)

12.grid(row-1,column-0)

e2 Entry (a, text=””) e2.gridtrow-1,column-1)

blButton(a,text=”login”,command-add) bl.grid(row-2,column-1)

}

SPES

Option Explicit

Dim a As Double

Dim b As Double

Dim op As String

Dim cleardisplay As Boolean

Private Sub add Click()

a Val (display. Text) op = “+”

display Text=””
9:53

Private Sub add Click() a Val (display, Text)

op = “+”

display. Text=””

End Sub

Private Sub clear_Click() display. Text=”

End Sub

Private Sub digit Click(Index As Integer)

If cleardisplay Then End If

display. Text= cleardisplay= False

End Sub

display. Text display. Text + digit(Index).Caption

Private Sub div_Click() a Val (display. Text) op = “/”

display. Text=””

End Sub

Private Sub dot Click() If InStr(display. Text, “” Then

Exit Sub Else display. Text display. Text”” End If

End Sub

Private Sub equal Click() Dim result As Double b= Val (display. Text) If op=”+” Then result = a+b End If End If End If

If op=”-” Then

result = a-b

If op = “” Then.

result = a*b

End If If op”/” And b <> “0” Then

result = a/b

display. Text result End Sub

Private Sub Form_Load() End Sub Private Sub mul_Click() a Val (display. Text)

op=””

display. Text=”

End Sub

Private Sub off Click() End

End Sub

Private Sub sub_Click()

a Val (display. Text)

op=

display. Text””

End

Mam നോക്കുണ്ടോ എന്ന് ശ്രദ്ധിക്കുക 😅📌

nRtN9s$Cx23[?~!;f*S$iNzqRNP%:=$X