Posts

File operation

                File operation  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"); System.out.println("Enter your choice:"); i= Integer.parseInt(d.readLine()); switch(i) {   case 1:        createFile...

Tests

Image
HTML Quiz   Css Quiz  Aptitude Quiz      Level 1     Level 2

Resume

Image
                  Resume(HTML) PROGRAM  : <!DOCTYPE html> <html> <head> <title>PROFILE</title> </head> <body> <center> <h1>RESUME</h1> </center>  <ul> <li><a href ="#Con"> Contact Information</a></li> <li><a href ="#Per"> Personal Details</a></li> <li><a href ="#Edu"> Education</a></li> </ul> <h2 id=Con>Contact Information</h2> <ul> <li>Address: North Street,<br> Thiruvaippadi.</li> <li>Contact Number: 7708016760</li> <li>Email: dsmahalakshmi@gmail.ccom</li> </ul> <h2 id=Per>Personal Details</h2> <ul> <li>Name: D.Mahalakshmi</li> <li>DOB: 26.05.2003</li> <li>Father Name: M.Dekendiran</li> <li>Mother Name: D.Sumathi</li> <li>Gender: Female</li> ...

Shutdown process

Image
            Shutdown process in notepad Step1: Click Windows+R and type notepad. Click ok. Step2: Open the notepad on the window. Step3: Type Shutdown -s in notepad. Step4: Next save as the file in any name.bat        Save the file. Step5: Go to save file and click. Note on the window and click on the close. Step6:  Shut down automatically in sec.

Date and Time Setting

Image
       Date & Time Setting (Windows 7) 1. Click on the Date & Time display in the system(bottom right corner of the screen). 2. Click on change Date and Time Settings. 3. Click on change date and time. 4. Select the correct date and time from the clock and calendar. 5. Click OK to save the changes.

Profile

Image
                Student Profile    <!DOCTYPE html> <html lang="en"> <head>     <meta charset="UTF-8">     <meta name="viewport" content="width=device-width, initial-scale=1.0">     <title>Student Profile</title>     <link rel="stylesheet" href="styles.css"> <style> {     margin: 3;     padding: 1;     box-sizing: border-box; } body {     font-family: Arial, sans-serif;     background-color: #f0f0f0;     padding: 20px; } .profile {     background-color: #fff;     padding: 20px;     border-radius: 8px;     box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);     max-width: 400px;     margin: 3 auto; } .profile img {     width: 150px;     height: 150px;     border-radius: 30%;     margin-bottom: 10px;...

Java program

                First program  import java.lang.*; import java.io.*; class Questions { public String [][]qpa; public String[][]qca;  Questions()throws IOException { qpa=new String[10][5]; DataInputStream in=new DataInputStream(System.in); qpa[0][0]="Which Java statement is used to print output to the screen?"; qpa[0][1]="1.System.Out.Println()"; qpa[0][2]="2.Console.WriteLine()"; qpa[0][3]="3.Print statement()"; qpa[0][4]="4.Output println()"; qpa[1][0]="What is the data type of the variable int x = 10?"; qpa[1][1]="1.Float"; qpa[1][2]="2.Integer";  qpa[1][3]="3.String"; qpa[1][4]="4.Double"; qpa[2][0]="Which Java keyword is used to define a class?";  qpa[2][1]="1.Class"; qpa[2][2]="2.Public"; qpa[2][3]="3.Void"; qpa[2][4]="4.Static"; qpa[3][0]="Which Java operator is used for bitwise AND operation?";  qpa[3][1]="1.&...