Posts

React

React Tutorial - Learn React Basics | Poojaaa  REACT Decription : React is a JavaScript library used for building interactive user interfaces, especially single-page applications. It allows developers to create reusable UI components and manage dynamic data efficiently. React is maintained by Meta (formerly Facebook) and is widely used in modern web development. 1. Use State : OPERATORS Step1 : Open Vs Code  Step2 : Open New Terminal Step3 : node -v Step4 : npm -v Step5 : npx create-react-app my-app Step6 : src/App.js Step7 : App.js(Replace) import React, { useState } from 'react'; import './App.css'; function App() {   const [num1, setNum1] = useState(0);   const [num2, setNum2] = useState(0);   const [result, setResult] = useState('');   const calculate = (op) => {     const n1 = parseFloat(num1);     const n2 = parseFloat(num2);     let res = 0; ...

File operation

File Operation:        Here’s a Java program that demonstrates basic file operations for inserting, selecting, updating, and deleting data. This example uses a simple text file and handles each operation: Explanation: Insert : Adds new data to the end of the file. Select : Reads and prints the content of the file. Update : Reads the file, replaces occurrences of old text with new text, and writes the updated content back. Delete : Deletes the file from the files programs.  Program: import java.io.File; import java.io.*; import java.io.FileWriter; import java.io.FileReader; import java.io.BufferedReader; import java.io.IOException; class FSC{      public static void main(String args[])throws IOException { int i; DataInputStream d = new DataInputStream(System.in); String fileName = "msc1.txt"; do { System.out.println("\nwhich type of file operation you want to perform?"); System.out.println("\n1.file creation\n2.read\n3.write\n4.update\n5.delete"); ...

Profile

RESUME :