├── .github └── workflows │ ├── maven-publish.yml │ └── maven.yml ├── Calculator ├── .classpath ├── .project ├── .settings │ ├── .jsdtscope │ ├── org.eclipse.core.resources.prefs │ ├── org.eclipse.jdt.core.prefs │ ├── org.eclipse.wst.common.component │ ├── org.eclipse.wst.common.project.facet.core.xml │ ├── org.eclipse.wst.jsdt.ui.superType.container │ └── org.eclipse.wst.jsdt.ui.superType.name ├── README.md ├── output.png └── src │ └── main │ └── webapp │ ├── META-INF │ └── MANIFEST.MF │ ├── WEB-INF │ └── web.xml │ ├── index.html │ └── style.css ├── EXPERIMENT 1 ├── .classpath ├── .project ├── .settings │ ├── org.eclipse.core.resources.prefs │ └── org.eclipse.jdt.core.prefs ├── bin │ ├── EXPERIMENT1 │ │ ├── Deserial.class │ │ ├── Serial.class │ │ └── Student.class │ └── module-info.class └── src │ ├── EXPERIMENT1 │ ├── Deserial.java │ ├── Serial.java │ └── Student.java │ └── module-info.java ├── EXPERIMENT 2 ├── .classpath ├── .project ├── .settings │ ├── org.eclipse.core.resources.prefs │ └── org.eclipse.jdt.core.prefs ├── bin │ ├── EXPERIMENT2 │ │ ├── AgeComparator.class │ │ ├── FeesComparator.class │ │ ├── NameComparator.class │ │ ├── SalaryComparator.class │ │ ├── Student.class │ │ └── TEMP1.class │ └── module-info.class └── src │ ├── EXPERIMENT2 │ ├── Student.java │ └── TEMP1.java │ └── module-info.java ├── EXPERIMENT 3 ├── .classpath ├── .project ├── .settings │ ├── org.eclipse.core.resources.prefs │ └── org.eclipse.jdt.core.prefs ├── bin │ ├── jdbc │ │ └── Temp2.class │ └── module-info.class └── src │ ├── jdbc │ └── Temp2.java │ └── module-info.java ├── EXPERIMENT 4 ├── .classpath ├── .project ├── .settings │ ├── org.eclipse.core.resources.prefs │ └── org.eclipse.jdt.core.prefs ├── bin │ ├── lambdaExperession │ │ ├── Student.class │ │ └── exp4.class │ └── module-info.class └── src │ ├── lambdaExperession │ ├── Student.java │ └── exp4.java │ └── module-info.java ├── EXPERIMENT 5 ├── .classpath ├── .project ├── .settings │ ├── .jsdtscope │ ├── org.eclipse.core.resources.prefs │ ├── org.eclipse.jdt.core.prefs │ ├── org.eclipse.wst.common.component │ ├── org.eclipse.wst.common.project.facet.core.xml │ ├── org.eclipse.wst.jsdt.ui.superType.container │ └── org.eclipse.wst.jsdt.ui.superType.name ├── build │ └── classes │ │ ├── DispData │ │ └── DispData.class │ │ └── InsertData │ │ └── InsertData.class └── src │ └── main │ ├── java │ ├── DispData │ │ └── DispData.java │ └── InsertData │ │ └── InsertData.java │ └── webapp │ ├── Insert.jsp │ ├── META-INF │ └── MANIFEST.MF │ ├── Search.jsp │ └── WEB-INF │ └── lib │ └── mysql-connector-j-8.3.0.jar ├── EXPERIMENT 6 ├── .classpath ├── .project ├── .settings │ ├── .jsdtscope │ ├── org.eclipse.core.resources.prefs │ ├── org.eclipse.jdt.core.prefs │ ├── org.eclipse.wst.common.component │ ├── org.eclipse.wst.common.project.facet.core.xml │ ├── org.eclipse.wst.jsdt.ui.superType.container │ └── org.eclipse.wst.jsdt.ui.superType.name └── src │ └── main │ └── webapp │ ├── Disp.jsp │ ├── Insert.jsp │ ├── META-INF │ └── MANIFEST.MF │ └── WEB-INF │ └── lib │ └── mysql-connector-j-8.3.0.jar ├── EXPERIMENT 7 ├── .classpath ├── .project ├── .settings │ ├── .jsdtscope │ ├── org.eclipse.core.resources.prefs │ ├── org.eclipse.jdt.core.prefs │ ├── org.eclipse.wst.common.component │ ├── org.eclipse.wst.common.project.facet.core.xml │ ├── org.eclipse.wst.jsdt.ui.superType.container │ └── org.eclipse.wst.jsdt.ui.superType.name ├── Experiment 5 │ ├── .classpath │ ├── .project │ ├── .settings │ │ ├── .jsdtscope │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.wst.common.component │ │ ├── org.eclipse.wst.common.project.facet.core.xml │ │ ├── org.eclipse.wst.jsdt.ui.superType.container │ │ └── org.eclipse.wst.jsdt.ui.superType.name │ ├── build │ │ └── classes │ │ │ ├── DispData │ │ │ └── DispData.class │ │ │ └── InsertData │ │ │ └── InsertData.class │ └── src │ │ └── main │ │ ├── java │ │ ├── DispData │ │ │ └── DispData.java │ │ └── InsertData │ │ │ └── InsertData.java │ │ └── webapp │ │ ├── Insert.jsp │ │ ├── META-INF │ │ └── MANIFEST.MF │ │ ├── Search.jsp │ │ └── WEB-INF │ │ └── lib │ │ └── mysql-connector-j-8.3.0.jar ├── Experiment 6 │ ├── .classpath │ ├── .project │ ├── .settings │ │ ├── .jsdtscope │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.wst.common.component │ │ ├── org.eclipse.wst.common.project.facet.core.xml │ │ ├── org.eclipse.wst.jsdt.ui.superType.container │ │ └── org.eclipse.wst.jsdt.ui.superType.name │ └── src │ │ └── main │ │ └── webapp │ │ ├── Disp.jsp │ │ ├── Insert.jsp │ │ ├── META-INF │ │ └── MANIFEST.MF │ │ └── WEB-INF │ │ └── lib │ │ └── mysql-connector-j-8.3.0.jar ├── Experiment_7 │ ├── .classpath │ ├── .project │ ├── .settings │ │ ├── .jsdtscope │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.wst.common.component │ │ ├── org.eclipse.wst.common.project.facet.core.xml │ │ ├── org.eclipse.wst.jsdt.ui.superType.container │ │ └── org.eclipse.wst.jsdt.ui.superType.name │ ├── build │ │ └── classes │ │ │ ├── ControllerServlet │ │ │ └── ControllerServlet.class │ │ │ └── LoginBean │ │ │ ├── ControllerServlet.class │ │ │ └── LoginBean.class │ └── src │ │ └── main │ │ ├── java │ │ ├── ControllerServlet │ │ │ └── ControllerServlet.java │ │ └── LoginBean │ │ │ ├── ControllerServlet.java │ │ │ └── LoginBean.java │ │ └── webapp │ │ ├── META-INF │ │ └── MANIFEST.MF │ │ ├── WEB-INF │ │ └── lib │ │ │ └── mysql-connector-j-8.3.0.jar │ │ ├── index.jsp │ │ ├── login-error.jsp │ │ └── login-success.jsp ├── build │ └── classes │ │ ├── ControllerServlet │ │ └── ControllerServlet.class │ │ └── LoginBean │ │ ├── ControllerServlet.class │ │ └── LoginBean.class └── src │ └── main │ ├── java │ ├── ControllerServlet │ │ └── ControllerServlet.java │ └── LoginBean │ │ ├── ControllerServlet.java │ │ └── LoginBean.java │ └── webapp │ ├── META-INF │ └── MANIFEST.MF │ ├── WEB-INF │ └── lib │ │ └── mysql-connector-j-8.3.0.jar │ ├── index.jsp │ ├── login-error.jsp │ └── login-success.jsp ├── EXPERIMENT 8 ├── .classpath ├── .project ├── .settings │ ├── org.eclipse.core.resources.prefs │ ├── org.eclipse.jdt.core.prefs │ ├── org.eclipse.m2e.core.prefs │ └── org.hibernate.eclipse.console.prefs ├── pom.xml ├── src │ ├── main │ │ └── java │ │ │ ├── com │ │ │ └── pu │ │ │ │ └── exp_8 │ │ │ │ ├── App.java │ │ │ │ └── Student.java │ │ │ └── hibernate.cfg.xml │ └── test │ │ └── java │ │ └── com │ │ └── pu │ │ └── exp_8 │ │ └── AppTest.java └── target │ ├── classes │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── maven │ │ │ └── com.spring.hibernate │ │ │ └── Spring-Hibernate │ │ │ ├── pom.properties │ │ │ └── pom.xml │ ├── com │ │ └── pu │ │ │ └── exp_8 │ │ │ ├── App.class │ │ │ └── Student.class │ └── hibernate.cfg.xml │ └── test-classes │ └── com │ └── pu │ └── exp_8 │ └── AppTest.class ├── LICENSE ├── LoginForm ├── .classpath ├── .project ├── .settings │ ├── .jsdtscope │ ├── org.eclipse.core.resources.prefs │ ├── org.eclipse.jdt.core.prefs │ ├── org.eclipse.wst.common.component │ ├── org.eclipse.wst.common.project.facet.core.xml │ ├── org.eclipse.wst.jsdt.ui.superType.container │ └── org.eclipse.wst.jsdt.ui.superType.name ├── build │ └── classes │ │ └── login │ │ └── login.class └── src │ └── main │ ├── java │ └── login │ │ └── login.java │ └── webapp │ ├── META-INF │ └── MANIFEST.MF │ └── login.jsp ├── README.md ├── RegistrationForm ├── .classpath ├── .project ├── .settings │ ├── .jsdtscope │ ├── org.eclipse.core.resources.prefs │ ├── org.eclipse.jdt.core.prefs │ ├── org.eclipse.wst.common.component │ ├── org.eclipse.wst.common.project.facet.core.xml │ ├── org.eclipse.wst.jsdt.ui.superType.container │ └── org.eclipse.wst.jsdt.ui.superType.name ├── build │ └── classes │ │ └── register │ │ └── register.class └── src │ └── main │ ├── java │ └── register │ │ └── register.java │ └── webapp │ ├── META-INF │ └── MANIFEST.MF │ └── register.jsp ├── insert_data_into_database ├── .classpath ├── .project ├── .settings │ ├── org.eclipse.core.resources.prefs │ └── org.eclipse.jdt.core.prefs ├── README.md ├── bin │ ├── insertData │ │ └── insertData.class │ └── module-info.class └── src │ ├── insertData │ └── insertData.java │ └── module-info.java ├── labsheet5 ├── .classpath ├── .project ├── .settings │ ├── .jsdtscope │ ├── org.eclipse.core.resources.prefs │ ├── org.eclipse.jdt.core.prefs │ ├── org.eclipse.wst.common.component │ ├── org.eclipse.wst.common.project.facet.core.xml │ ├── org.eclipse.wst.jsdt.ui.superType.container │ └── org.eclipse.wst.jsdt.ui.superType.name ├── build │ └── classes │ │ ├── DispData │ │ └── DispData.class │ │ ├── InsertData │ │ └── InsertData.class │ │ └── InsertDataa │ │ └── InsertDataa.class └── src │ └── main │ ├── java │ ├── DispData │ │ └── DispData.java │ ├── InsertData │ │ └── InsertData.java │ └── InsertDataa │ │ └── InsertDataa.java │ └── webapp │ ├── Insert.jsp │ ├── META-INF │ └── MANIFEST.MF │ ├── Search.jsp │ └── WEB-INF │ ├── lib │ └── mysql-connector-j-8.3.0.jar │ └── web.xml ├── labsheet6 ├── .classpath ├── .project ├── .settings │ ├── .jsdtscope │ ├── org.eclipse.core.resources.prefs │ ├── org.eclipse.jdt.core.prefs │ ├── org.eclipse.wst.common.component │ ├── org.eclipse.wst.common.project.facet.core.xml │ ├── org.eclipse.wst.jsdt.ui.superType.container │ └── org.eclipse.wst.jsdt.ui.superType.name └── src │ └── main │ └── webapp │ ├── Disp.jsp │ ├── Insert.jsp │ ├── META-INF │ └── MANIFEST.MF │ └── WEB-INF │ └── lib │ └── mysql-connector-j-8.3.0.jar ├── labsheet7 ├── .classpath ├── .project ├── .settings │ ├── .jsdtscope │ ├── org.eclipse.core.resources.prefs │ ├── org.eclipse.jdt.core.prefs │ ├── org.eclipse.wst.common.component │ ├── org.eclipse.wst.common.project.facet.core.xml │ ├── org.eclipse.wst.jsdt.ui.superType.container │ └── org.eclipse.wst.jsdt.ui.superType.name ├── build │ └── classes │ │ ├── ControllerServlet │ │ └── ControllerServlet.class │ │ └── LoginBean │ │ └── LoginBean.class └── src │ └── main │ ├── java │ ├── ControllerServlet │ │ └── ControllerServlet.java │ └── LoginBean │ │ └── LoginBean.java │ └── webapp │ ├── META-INF │ └── MANIFEST.MF │ ├── WEB-INF │ └── web.xml │ ├── index.jsp │ ├── login-error.jsp │ └── login-success.jsp ├── labsheets ├── Exp1_M1.docx ├── Exp2_M1.docx ├── Exp3_M1.docx └── Exp4_M1.txt ├── module ├── JavaAllComponents │ ├── .classpath │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ └── org.eclipse.jdt.core.prefs │ ├── bin │ │ └── allcompo │ │ │ └── allcompo.class │ └── src │ │ ├── allcompo │ │ └── allcompo.java │ │ └── module-info.java ├── Project With All Components │ ├── .classpath │ ├── .project │ ├── .settings │ │ ├── .jsdtscope │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.wst.common.component │ │ ├── org.eclipse.wst.common.project.facet.core.xml │ │ ├── org.eclipse.wst.jsdt.ui.superType.container │ │ └── org.eclipse.wst.jsdt.ui.superType.name │ ├── build │ │ └── classes │ │ │ └── allCompo │ │ │ └── allCompo.class │ └── src │ │ └── main │ │ ├── java │ │ └── allCompo │ │ │ └── allCompo.java │ │ └── webapp │ │ ├── META-INF │ │ └── MANIFEST.MF │ │ ├── WEB-INF │ │ ├── lib │ │ │ └── mysql-connector-j-8.3.0.jar │ │ └── web.xml │ │ └── allComponents.jsp ├── Student Registration Form │ ├── .classpath │ ├── .project │ ├── .settings │ │ ├── .jsdtscope │ │ ├── org.eclipse.core.resources.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.wst.common.component │ │ ├── org.eclipse.wst.common.project.facet.core.xml │ │ ├── org.eclipse.wst.jsdt.ui.superType.container │ │ └── org.eclipse.wst.jsdt.ui.superType.name │ ├── build │ │ └── classes │ │ │ └── studentInfo │ │ │ └── register.class │ └── src │ │ └── main │ │ ├── java │ │ └── studentInfo │ │ │ └── register.java │ │ └── webapp │ │ ├── META-INF │ │ └── MANIFEST.MF │ │ ├── WEB-INF │ │ ├── lib │ │ │ └── mysql-connector-j-8.3.0.jar │ │ └── web.xml │ │ └── index.jsp ├── experimentFour │ ├── .classpath │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ └── org.eclipse.jdt.core.prefs │ ├── bin │ │ ├── experimentFour │ │ │ └── expFour.class │ │ └── module-info.class │ └── src │ │ ├── experimentFour │ │ └── expFour.java │ │ └── module-info.java ├── experimentThree │ ├── .classpath │ ├── .project │ ├── .settings │ │ ├── org.eclipse.core.resources.prefs │ │ └── org.eclipse.jdt.core.prefs │ ├── bin │ │ ├── experimentThree │ │ │ └── jdbc.class │ │ └── module-info.class │ └── src │ │ ├── experimentThree │ │ └── jdbc.java │ │ └── module-info.java ├── experiment_one │ ├── .idea │ │ ├── .gitignore │ │ ├── aws.xml │ │ ├── dbnavigator.xml │ │ ├── misc.xml │ │ ├── modules.xml │ │ ├── uiDesigner.xml │ │ └── vcs.xml │ ├── module1.iml │ ├── out │ │ └── production │ │ │ └── module1 │ │ │ └── module1 │ │ │ └── experiment1 │ │ │ ├── Deserial.class │ │ │ ├── Serial.class │ │ │ ├── Student.class │ │ │ └── file.txt │ └── src │ │ └── module1 │ │ └── experiment1 │ │ ├── Deserial.java │ │ ├── Serial.java │ │ ├── Student.java │ │ └── file.txt ├── experiment_two │ ├── .idea │ │ ├── .gitignore │ │ ├── dbnavigator.xml │ │ ├── misc.xml │ │ └── modules.xml │ ├── experiment_two.iml │ ├── out │ │ └── production │ │ │ └── experiment_two │ │ │ ├── AgeComparator.class │ │ │ ├── FeesComprator.class │ │ │ ├── Main$1.class │ │ │ ├── Main$2.class │ │ │ ├── Main.class │ │ │ ├── NameComprator.class │ │ │ └── Student.class │ └── src │ │ └── Main.java └── insert_data_into_database │ ├── .classpath │ ├── .project │ ├── .settings │ ├── org.eclipse.core.resources.prefs │ └── org.eclipse.jdt.core.prefs │ ├── bin │ ├── insertData │ │ └── insertData.class │ └── module-info.class │ └── src │ ├── insertData │ └── insertData.java │ └── module-info.java ├── mysql-connector-j-8.3.0.jar └── serializationAndDeseralization ├── .classpath ├── .project ├── .settings ├── org.eclipse.core.resources.prefs └── org.eclipse.jdt.core.prefs ├── bin ├── module-info.class └── serializationAndDeseralization │ ├── deserial.class │ ├── serial.class │ └── student.class └── src ├── module-info.java └── serializationAndDeseralization ├── deserial.java ├── serial.java └── student.java /.github/workflows/maven-publish.yml: -------------------------------------------------------------------------------- 1 | # This workflow will build a package using Maven and then publish it to GitHub packages when a release is created 2 | # For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path 3 | 4 | name: Maven Package 5 | 6 | on: 7 | release: 8 | types: [created] 9 | 10 | jobs: 11 | build: 12 | 13 | runs-on: ubuntu-latest 14 | permissions: 15 | contents: read 16 | packages: write 17 | 18 | steps: 19 | - uses: actions/checkout@v3 20 | - name: Set up JDK 11 21 | uses: actions/setup-java@v3 22 | with: 23 | java-version: '11' 24 | distribution: 'temurin' 25 | server-id: github # Value of the distributionManagement/repository/id field of the pom.xml 26 | settings-path: ${{ github.workspace }} # location for the settings.xml file 27 | 28 | - name: Build with Maven 29 | run: mvn -B package --file pom.xml 30 | 31 | - name: Publish to GitHub Packages Apache Maven 32 | run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml 33 | env: 34 | GITHUB_TOKEN: ${{ github.token }} 35 | -------------------------------------------------------------------------------- /.github/workflows/maven.yml: -------------------------------------------------------------------------------- 1 | # This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time 2 | # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven 3 | 4 | # This workflow uses actions that are not certified by GitHub. 5 | # They are provided by a third-party and are governed by 6 | # separate terms of service, privacy policy, and support 7 | # documentation. 8 | 9 | name: Java CI with Maven 10 | 11 | on: 12 | push: 13 | branches: [ "main" ] 14 | pull_request: 15 | branches: [ "main" ] 16 | 17 | jobs: 18 | build: 19 | 20 | runs-on: ubuntu-latest 21 | 22 | steps: 23 | - uses: actions/checkout@v3 24 | - name: Set up JDK 17 25 | uses: actions/setup-java@v3 26 | with: 27 | java-version: '17' 28 | distribution: 'temurin' 29 | cache: maven 30 | - name: Build with Maven 31 | run: mvn -B package --file pom.xml 32 | 33 | # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive 34 | - name: Update dependency graph 35 | uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6 36 | -------------------------------------------------------------------------------- /Calculator/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Calculator/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Calculator 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.wst.common.project.facet.core.builder 15 | 16 | 17 | 18 | 19 | org.eclipse.wst.validation.validationbuilder 20 | 21 | 22 | 23 | 24 | 25 | org.eclipse.jem.workbench.JavaEMFNature 26 | org.eclipse.wst.common.modulecore.ModuleCoreNature 27 | org.eclipse.wst.common.project.facet.core.nature 28 | org.eclipse.jdt.core.javanature 29 | org.eclipse.wst.jsdt.core.jsNature 30 | 31 | 32 | -------------------------------------------------------------------------------- /Calculator/.settings/.jsdtscope: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Calculator/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=UTF-8 3 | -------------------------------------------------------------------------------- /Calculator/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 4 | org.eclipse.jdt.core.compiler.compliance=17 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 7 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 8 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 9 | org.eclipse.jdt.core.compiler.release=enabled 10 | org.eclipse.jdt.core.compiler.source=17 11 | -------------------------------------------------------------------------------- /Calculator/.settings/org.eclipse.wst.common.component: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Calculator/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Calculator/.settings/org.eclipse.wst.jsdt.ui.superType.container: -------------------------------------------------------------------------------- 1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary -------------------------------------------------------------------------------- /Calculator/.settings/org.eclipse.wst.jsdt.ui.superType.name: -------------------------------------------------------------------------------- 1 | Window -------------------------------------------------------------------------------- /Calculator/README.md: -------------------------------------------------------------------------------- 1 | # Calculator _(HTML, CSS, Java)_ 2 | ![alt text](https://github.com/AkashKobal/java-full-stack-developement/blob/main/Calculator/output.png) 3 | -------------------------------------------------------------------------------- /Calculator/output.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/Calculator/output.png -------------------------------------------------------------------------------- /Calculator/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /Calculator/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Calculator 4 | 5 | index.html 6 | index.jsp 7 | index.htm 8 | default.html 9 | default.jsp 10 | default.htm 11 | 12 | -------------------------------------------------------------------------------- /Calculator/src/main/webapp/style.css: -------------------------------------------------------------------------------- 1 | @charset "ISO-8859-1"; 2 | body{ 3 | background-color: #EEF5FF; 4 | 5 | } 6 | .container{ 7 | background-color: rgba(0, 0, 0, 0.716); 8 | position: absolute; 9 | top: 50%; 10 | left: 50%; 11 | transform: translate(-50%, -50%); 12 | width: 338px; 13 | height: 500px; 14 | border-radius: 10px; 15 | } 16 | .btn{ 17 | border-radius: 5px; 18 | padding: 20px; 19 | color: black; 20 | 21 | } 22 | .calculator form input{ 23 | border: 0; 24 | outline: 0; 25 | width: 60px; 26 | height: 60px; 27 | border-radius: 10px; 28 | font-size: 20px; 29 | color: #fff; 30 | cursor: pointer; 31 | margin: 10px; 32 | background-color: rgba(0, 0, 0, 0.434); 33 | 34 | } 35 | #equalsBtn{ 36 | width: 150px; 37 | } 38 | 39 | #display{ 40 | width: 310px; 41 | background-color: transparent; 42 | display: flex; 43 | justify-content: flex-end; 44 | margin: 10px 0; 45 | text-align: right; 46 | flex: 1; 47 | font-size: 45px; 48 | box-shadow: none; 49 | 50 | } 51 | 52 | #equalsBtn { 53 | background-color: #86B6F6; 54 | color: black; 55 | font-size: 20px; 56 | 57 | border-radius: 10px; 58 | cursor: pointer; 59 | margin: 4px; 60 | border: 0; 61 | outline: 0; 62 | } 63 | #mul{ 64 | color: #176B87; 65 | 66 | 67 | } 68 | #add{ 69 | color: #176B87; 70 | 71 | } 72 | #sub{ 73 | color: #176B87; 74 | 75 | } 76 | #AC{ 77 | color: #176B87; 78 | 79 | } 80 | #DE{ 81 | color: #176B87; 82 | 83 | } 84 | #slash{ 85 | color: #176B87; 86 | 87 | } 88 | #dot{ 89 | color: #176B87; 90 | 91 | } 92 | 93 | -------------------------------------------------------------------------------- /EXPERIMENT 1/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /EXPERIMENT 1/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | EXPERIMENT1 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /EXPERIMENT 1/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=UTF-8 3 | -------------------------------------------------------------------------------- /EXPERIMENT 1/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=17 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 13 | org.eclipse.jdt.core.compiler.release=enabled 14 | org.eclipse.jdt.core.compiler.source=17 15 | -------------------------------------------------------------------------------- /EXPERIMENT 1/bin/EXPERIMENT1/Deserial.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/EXPERIMENT 1/bin/EXPERIMENT1/Deserial.class -------------------------------------------------------------------------------- /EXPERIMENT 1/bin/EXPERIMENT1/Serial.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/EXPERIMENT 1/bin/EXPERIMENT1/Serial.class -------------------------------------------------------------------------------- /EXPERIMENT 1/bin/EXPERIMENT1/Student.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/EXPERIMENT 1/bin/EXPERIMENT1/Student.class -------------------------------------------------------------------------------- /EXPERIMENT 1/bin/module-info.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/EXPERIMENT 1/bin/module-info.class -------------------------------------------------------------------------------- /EXPERIMENT 1/src/EXPERIMENT1/Deserial.java: -------------------------------------------------------------------------------- 1 | package EXPERIMENT1; 2 | 3 | import java.io.*; 4 | class Deserial { 5 | public static void main(String args[]){ 6 | try{ 7 | FileInputStream fin = new FileInputStream("d:\\f.txt"); 8 | ObjectInputStream in=new ObjectInputStream(fin); 9 | Student s1=(Student)in.readObject(); 10 | Student s2=(Student)in.readObject(); 11 | Student s3=(Student)in.readObject(); 12 | Student s4=(Student)in.readObject(); 13 | Student s5=(Student)in.readObject(); 14 | 15 | 16 | System.out.println(s1); 17 | System.out.println(s2); 18 | System.out.println(s3); 19 | System.out.println(s4); 20 | System.out.println(s5); 21 | in.close(); 22 | }catch(Exception e){ 23 | System.out.println(e); 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /EXPERIMENT 1/src/EXPERIMENT1/Serial.java: -------------------------------------------------------------------------------- 1 | package EXPERIMENT1; 2 | 3 | import java.io.*; 4 | class Serial{ 5 | public static void main(String args[]){ 6 | try 7 | { 8 | Student s1 =new Student(1,"ram", 1000); 9 | Student s2 =new Student(2,"shyam", 2000); 10 | Student s3 =new Student(3,"mohan", 3000); 11 | Student s4 =new Student(4,"sohan", 4000); 12 | Student s5 =new Student(5,"mohan", 5000); 13 | FileOutputStream fout=new FileOutputStream("d:\\f.txt"); 14 | ObjectOutputStream out=new ObjectOutputStream(fout); 15 | out.writeObject(s1); 16 | out.writeObject(s2); 17 | out.writeObject(s3); 18 | out.writeObject(s4); 19 | out.writeObject(s5); 20 | out.flush(); 21 | out.close(); 22 | System.out.println("success"); 23 | } 24 | catch(Exception e){ 25 | System.out.println(e); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /EXPERIMENT 1/src/EXPERIMENT1/Student.java: -------------------------------------------------------------------------------- 1 | package EXPERIMENT1; 2 | 3 | import java.io.Serializable; 4 | 5 | public class Student implements Serializable { 6 | int rno; 7 | String name; 8 | float fees; 9 | public Student(int id1, String name1, float fees1) { 10 | this.rno = id1; 11 | this.name = name1; 12 | this.fees = fees1; 13 | } 14 | public String toString() { 15 | return rno + " " + name +" " + fees +"\n"; 16 | } 17 | } 18 | 19 | -------------------------------------------------------------------------------- /EXPERIMENT 1/src/module-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | */ 4 | /** 5 | * 6 | */ 7 | module EXPERIMENT1 { 8 | } -------------------------------------------------------------------------------- /EXPERIMENT 2/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /EXPERIMENT 2/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | EXPERIMENT2 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /EXPERIMENT 2/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=UTF-8 3 | -------------------------------------------------------------------------------- /EXPERIMENT 2/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=17 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 13 | org.eclipse.jdt.core.compiler.release=enabled 14 | org.eclipse.jdt.core.compiler.source=17 15 | -------------------------------------------------------------------------------- /EXPERIMENT 2/bin/EXPERIMENT2/AgeComparator.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/EXPERIMENT 2/bin/EXPERIMENT2/AgeComparator.class -------------------------------------------------------------------------------- /EXPERIMENT 2/bin/EXPERIMENT2/FeesComparator.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/EXPERIMENT 2/bin/EXPERIMENT2/FeesComparator.class -------------------------------------------------------------------------------- /EXPERIMENT 2/bin/EXPERIMENT2/NameComparator.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/EXPERIMENT 2/bin/EXPERIMENT2/NameComparator.class -------------------------------------------------------------------------------- /EXPERIMENT 2/bin/EXPERIMENT2/SalaryComparator.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/EXPERIMENT 2/bin/EXPERIMENT2/SalaryComparator.class -------------------------------------------------------------------------------- /EXPERIMENT 2/bin/EXPERIMENT2/Student.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/EXPERIMENT 2/bin/EXPERIMENT2/Student.class -------------------------------------------------------------------------------- /EXPERIMENT 2/bin/EXPERIMENT2/TEMP1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/EXPERIMENT 2/bin/EXPERIMENT2/TEMP1.class -------------------------------------------------------------------------------- /EXPERIMENT 2/bin/module-info.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/EXPERIMENT 2/bin/module-info.class -------------------------------------------------------------------------------- /EXPERIMENT 2/src/EXPERIMENT2/Student.java: -------------------------------------------------------------------------------- 1 | package EXPERIMENT2; 2 | 3 | import java.io.*; 4 | import java.util.*; 5 | 6 | class Student { 7 | int rollno; 8 | String name; 9 | float fees; 10 | String branch; 11 | int year; 12 | int sem; 13 | int age; 14 | static String clg; 15 | float salary; 16 | 17 | public Student(int rollno,String name,float fees,String branch,int year,int sem,int age,float salary) { 18 | this.rollno = rollno; 19 | this.name = name; 20 | this.fees = fees; 21 | this.branch = branch; 22 | this.year = year; 23 | this.sem = sem; 24 | this.age = age; 25 | clg="PU"; 26 | this.salary=salary; 27 | } 28 | @Override 29 | public String toString() { 30 | return rollno + " "+ name + " " + fees + " " + branch + " " + year + sem + " " + age + " " + clg + " "+salary+"\n"; 31 | } 32 | } 33 | class AgeComparator implements Comparator { 34 | public int compare(Object o1, Object o2) { 35 | Student s1=(Student)o1; 36 | Student s2=(Student)o2; 37 | if(s1.age==s2.age) 38 | return 0; 39 | else if(s1.age>s2.age) 40 | return 1; 41 | else 42 | return -1; 43 | } 44 | } 45 | class SalaryComparator implements Comparator{ 46 | public int compare(Object o1, Object o2) { 47 | Student s1 = (Student) o1; 48 | Student s2 = (Student) o2; 49 | if (s1.salary == s2.salary) 50 | return 0; 51 | else if (s1.salary > s2.salary) 52 | return 1; 53 | else 54 | return -1; 55 | } 56 | } 57 | 58 | class NameComparator implements Comparator{ 59 | public int compare(Object o1, Object o2) { 60 | Student s1=(Student)o1; 61 | Student s2=(Student)o2; 62 | return s1.name.compareTo(s2.name); 63 | } 64 | } 65 | class FeesComparator implements Comparator { 66 | public int compare(Object o1,Object o2) { 67 | Student s1=(Student)o1; 68 | Student s2=(Student)o2; 69 | if(s1.fees==s2.fees) 70 | return 0; 71 | else if(s1.fees>s2.fees) 72 | return 1; 73 | else 74 | return -1; 75 | } 76 | } 77 | 78 | -------------------------------------------------------------------------------- /EXPERIMENT 2/src/EXPERIMENT2/TEMP1.java: -------------------------------------------------------------------------------- 1 | package EXPERIMENT2; 2 | 3 | import java.util.ArrayList; 4 | import java.util.Collections; 5 | import java.util.Iterator; 6 | 7 | public class TEMP1 { 8 | 9 | public static void main(String[] args) { 10 | // TODO Auto-generated method stub 11 | ArrayList sl=new ArrayList(); 12 | sl.add(new Student(1,"Shiva",10000.00f,"cse",1,1,18,20000.00f)); 13 | sl.add(new Student(2,"Venky",15000.00f,"ise",1,2,20,25000.00f)); 14 | sl.add(new Student(3,"Jesus",17000.00f,"ece",1,1,19,30000.00f)); 15 | sl.add(new Student(3,"Alla",12000.00f,"eee",1,1,19,30000.00f)); 16 | sl.add(new Student(3,"Budha",11000.00f,"mech",1,1,21,30000.00f)); 17 | System.out.println("Sorting by Name"); 18 | System.out.println("_______________"); 19 | Collections.sort(sl,new NameComparator()); 20 | Iterator itr=sl.iterator(); 21 | while(itr.hasNext()){ 22 | Student st=(Student)itr.next(); 23 | System.out.println(st); 24 | } 25 | System.out.println("Sorting by age"); 26 | System.out.println("______________"); 27 | Collections.sort(sl,new AgeComparator()); 28 | Iterator itr2=sl.iterator(); 29 | while(itr2.hasNext()) { 30 | Student st=(Student)itr2.next(); 31 | System.out.println(st ); 32 | } 33 | System.out.println("Sorting by fees"); 34 | System.out.println("______________"); 35 | Collections.sort(sl,new FeesComparator()); 36 | Iterator itr1=sl.iterator(); 37 | while(itr1.hasNext()){ 38 | Student st=(Student)itr1.next(); 39 | System.out.println(st); 40 | } 41 | System.out.println("Sorting by salary"); 42 | System.out.println("______________"); 43 | Collections.sort(sl,new SalaryComparator()); 44 | Iterator itr3=sl.iterator(); 45 | while (itr3.hasNext()) { 46 | Student st = (Student) itr3.next(); 47 | System.out.println(st); 48 | } 49 | } 50 | 51 | 52 | } 53 | 54 | -------------------------------------------------------------------------------- /EXPERIMENT 2/src/module-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | */ 4 | /** 5 | * 6 | */ 7 | module EXPERIMENT2 { 8 | } -------------------------------------------------------------------------------- /EXPERIMENT 3/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /EXPERIMENT 3/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | EXPERIMENT3 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /EXPERIMENT 3/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=UTF-8 3 | -------------------------------------------------------------------------------- /EXPERIMENT 3/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=17 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 13 | org.eclipse.jdt.core.compiler.release=enabled 14 | org.eclipse.jdt.core.compiler.source=17 15 | -------------------------------------------------------------------------------- /EXPERIMENT 3/bin/jdbc/Temp2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/EXPERIMENT 3/bin/jdbc/Temp2.class -------------------------------------------------------------------------------- /EXPERIMENT 3/bin/module-info.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/EXPERIMENT 3/bin/module-info.class -------------------------------------------------------------------------------- /EXPERIMENT 3/src/module-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | */ 4 | /** 5 | * 6 | */ 7 | module EXPERIMENT3 { 8 | requires java.sql; 9 | } -------------------------------------------------------------------------------- /EXPERIMENT 4/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /EXPERIMENT 4/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | EXPERIMENT4 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /EXPERIMENT 4/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=UTF-8 3 | -------------------------------------------------------------------------------- /EXPERIMENT 4/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=17 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 13 | org.eclipse.jdt.core.compiler.release=enabled 14 | org.eclipse.jdt.core.compiler.source=17 15 | -------------------------------------------------------------------------------- /EXPERIMENT 4/bin/lambdaExperession/Student.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/EXPERIMENT 4/bin/lambdaExperession/Student.class -------------------------------------------------------------------------------- /EXPERIMENT 4/bin/lambdaExperession/exp4.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/EXPERIMENT 4/bin/lambdaExperession/exp4.class -------------------------------------------------------------------------------- /EXPERIMENT 4/bin/module-info.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/EXPERIMENT 4/bin/module-info.class -------------------------------------------------------------------------------- /EXPERIMENT 4/src/lambdaExperession/Student.java: -------------------------------------------------------------------------------- 1 | package lambdaExperession; 2 | 3 | import java.util.*; 4 | class Student{ 5 | int rno; 6 | String name; 7 | int age; 8 | float fees; 9 | 10 | public Student(int rno, String name, int age, float fees) { 11 | super(); 12 | this.rno = rno; 13 | this.name = name; 14 | this.age = age; 15 | this.fees = fees; 16 | } 17 | 18 | 19 | @Override 20 | public String toString() { 21 | return rno + " " + name + " " + age + " " + fees; 22 | } 23 | } -------------------------------------------------------------------------------- /EXPERIMENT 4/src/lambdaExperession/exp4.java: -------------------------------------------------------------------------------- 1 | package lambdaExperession; 2 | 3 | import java.util.ArrayList; 4 | import java.util.Collections; 5 | 6 | class exp4 { 7 | public static void main(String[] args) { 8 | ArrayList s = new ArrayList(); 9 | s.add(new Student(1,"abc",20,20000.00f)); 10 | s.add(new Student(2,"xyz",15,15000.00f)); 11 | s.add(new Student(3,"def",10,10000.00f)); 12 | 13 | System.out.println("Sorting on the basis of name..."); 14 | 15 | // implementing lambda expression 16 | Collections.sort(s,(s1,s2)->{return s1.name.compareTo(s2.name);}); 17 | for(Student l:s){ 18 | System.out.println(l); 19 | } 20 | System.out.println("Sorting by age"); 21 | 22 | Collections.sort(s,(s1,s2)-> s1.age - s2.age); 23 | s.forEach((l)->System.out.println(l)); 24 | 25 | System.out.println("Sorting by Fees"); 26 | 27 | Collections.sort(s,(s1,s2)-> (int)s1.fees - (int)s2.fees); 28 | s.forEach((l)->System.out.println(l)); 29 | 30 | } 31 | } -------------------------------------------------------------------------------- /EXPERIMENT 4/src/module-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | */ 4 | /** 5 | * 6 | */ 7 | module EXPERIMENT4 { 8 | } -------------------------------------------------------------------------------- /EXPERIMENT 5/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /EXPERIMENT 5/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Experiment 5 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.wst.common.project.facet.core.builder 15 | 16 | 17 | 18 | 19 | org.eclipse.wst.validation.validationbuilder 20 | 21 | 22 | 23 | 24 | 25 | org.eclipse.jem.workbench.JavaEMFNature 26 | org.eclipse.wst.common.modulecore.ModuleCoreNature 27 | org.eclipse.wst.common.project.facet.core.nature 28 | org.eclipse.jdt.core.javanature 29 | org.eclipse.wst.jsdt.core.jsNature 30 | 31 | 32 | -------------------------------------------------------------------------------- /EXPERIMENT 5/.settings/.jsdtscope: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /EXPERIMENT 5/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=UTF-8 3 | -------------------------------------------------------------------------------- /EXPERIMENT 5/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 4 | org.eclipse.jdt.core.compiler.compliance=17 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 7 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 8 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 9 | org.eclipse.jdt.core.compiler.release=enabled 10 | org.eclipse.jdt.core.compiler.source=17 11 | -------------------------------------------------------------------------------- /EXPERIMENT 5/.settings/org.eclipse.wst.common.component: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /EXPERIMENT 5/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /EXPERIMENT 5/.settings/org.eclipse.wst.jsdt.ui.superType.container: -------------------------------------------------------------------------------- 1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary -------------------------------------------------------------------------------- /EXPERIMENT 5/.settings/org.eclipse.wst.jsdt.ui.superType.name: -------------------------------------------------------------------------------- 1 | Window -------------------------------------------------------------------------------- /EXPERIMENT 5/build/classes/DispData/DispData.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/EXPERIMENT 5/build/classes/DispData/DispData.class -------------------------------------------------------------------------------- /EXPERIMENT 5/build/classes/InsertData/InsertData.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/EXPERIMENT 5/build/classes/InsertData/InsertData.class -------------------------------------------------------------------------------- /EXPERIMENT 5/src/main/webapp/Insert.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | Insert title here 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 |
Enter Roll No:
Enter Name:
Enter Section: 24 |
Enter Subjet1 Mark:
Enter Subject2 Mark:
Enter Subjet3 Mark:
Enter Subject4 Mark:
Enter Subject5 Mark:
Enter Subject6 Mark:
Enter Lab1 Mark:
Enter Lab2 Mark:
52 |
53 | 54 | 55 | -------------------------------------------------------------------------------- /EXPERIMENT 5/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /EXPERIMENT 5/src/main/webapp/Search.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 |
11 | Enter your Roll No:
12 | 13 |
14 | 15 | 16 | -------------------------------------------------------------------------------- /EXPERIMENT 5/src/main/webapp/WEB-INF/lib/mysql-connector-j-8.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/EXPERIMENT 5/src/main/webapp/WEB-INF/lib/mysql-connector-j-8.3.0.jar -------------------------------------------------------------------------------- /EXPERIMENT 6/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /EXPERIMENT 6/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Experiment 6 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.wst.common.project.facet.core.builder 15 | 16 | 17 | 18 | 19 | org.eclipse.wst.validation.validationbuilder 20 | 21 | 22 | 23 | 24 | 25 | org.eclipse.jem.workbench.JavaEMFNature 26 | org.eclipse.wst.common.modulecore.ModuleCoreNature 27 | org.eclipse.wst.common.project.facet.core.nature 28 | org.eclipse.jdt.core.javanature 29 | org.eclipse.wst.jsdt.core.jsNature 30 | 31 | 32 | -------------------------------------------------------------------------------- /EXPERIMENT 6/.settings/.jsdtscope: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /EXPERIMENT 6/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=UTF-8 3 | -------------------------------------------------------------------------------- /EXPERIMENT 6/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 4 | org.eclipse.jdt.core.compiler.compliance=17 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 7 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 8 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 9 | org.eclipse.jdt.core.compiler.release=enabled 10 | org.eclipse.jdt.core.compiler.source=17 11 | -------------------------------------------------------------------------------- /EXPERIMENT 6/.settings/org.eclipse.wst.common.component: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /EXPERIMENT 6/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /EXPERIMENT 6/.settings/org.eclipse.wst.jsdt.ui.superType.container: -------------------------------------------------------------------------------- 1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary -------------------------------------------------------------------------------- /EXPERIMENT 6/.settings/org.eclipse.wst.jsdt.ui.superType.name: -------------------------------------------------------------------------------- 1 | Window -------------------------------------------------------------------------------- /EXPERIMENT 6/src/main/webapp/Disp.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | 3 | pageEncoding="ISO-8859-1"%> 4 | 5 | 6 | 7 | <%@ page import="java.sql.*" %> 8 | 9 | <%@ page import="java.io.*" %> 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | Insert title here 18 | 19 | 20 | 21 | 22 | 23 |

Employee Details

24 | 25 | <% 26 | 27 | try { 28 | 29 | 30 | Class.forName("com.mysql.jdbc.Driver"); 31 | Connection con=DriverManager.getConnection("jdbc:mysql://localhost:3308/module2","root","Akash@123"); 32 | Statement st = con.createStatement(); 33 | 34 | ResultSet rs = st.executeQuery("select * from employees"); 35 | 36 | %> 37 | 38 | 39 | 40 | 41 | 42 | <% 43 | 44 | while (rs.next()) { 45 | 46 | %> 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | <% } %> 63 | 64 | <% 65 | 66 | // close all the connections. 67 | 68 | rs.close(); 69 | 70 | st.close(); 71 | 72 | con.close(); 73 | 74 | } catch (Exception ex) { 75 | 76 | %> 77 | 78 | 79 | 80 | <% 81 | 82 | out.println("Unable to connect to database."); 83 | 84 | } 85 | 86 | %> 87 | 88 |
E.NoNameGenderDepartmentSalary
<%=rs.getInt(1)%><%=rs.getString(2)%><%=rs.getString(3)%><%=rs.getString(4)%><%=rs.getFloat(5)%>
89 | 90 | 91 | 92 | 95 | 96 | 97 | 98 |
93 | 94 |
99 | 100 | 101 | 102 | 103 | 104 | -------------------------------------------------------------------------------- /EXPERIMENT 6/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /EXPERIMENT 6/src/main/webapp/WEB-INF/lib/mysql-connector-j-8.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/EXPERIMENT 6/src/main/webapp/WEB-INF/lib/mysql-connector-j-8.3.0.jar -------------------------------------------------------------------------------- /EXPERIMENT 7/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /EXPERIMENT 7/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Experiment_7 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.wst.common.project.facet.core.builder 15 | 16 | 17 | 18 | 19 | org.eclipse.wst.validation.validationbuilder 20 | 21 | 22 | 23 | 24 | 25 | org.eclipse.jem.workbench.JavaEMFNature 26 | org.eclipse.wst.common.modulecore.ModuleCoreNature 27 | org.eclipse.wst.common.project.facet.core.nature 28 | org.eclipse.jdt.core.javanature 29 | org.eclipse.wst.jsdt.core.jsNature 30 | 31 | 32 | -------------------------------------------------------------------------------- /EXPERIMENT 7/.settings/.jsdtscope: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /EXPERIMENT 7/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=UTF-8 3 | -------------------------------------------------------------------------------- /EXPERIMENT 7/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 4 | org.eclipse.jdt.core.compiler.compliance=17 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 7 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 8 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 9 | org.eclipse.jdt.core.compiler.release=enabled 10 | org.eclipse.jdt.core.compiler.source=17 11 | -------------------------------------------------------------------------------- /EXPERIMENT 7/.settings/org.eclipse.wst.common.component: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /EXPERIMENT 7/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /EXPERIMENT 7/.settings/org.eclipse.wst.jsdt.ui.superType.container: -------------------------------------------------------------------------------- 1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary -------------------------------------------------------------------------------- /EXPERIMENT 7/.settings/org.eclipse.wst.jsdt.ui.superType.name: -------------------------------------------------------------------------------- 1 | Window -------------------------------------------------------------------------------- /EXPERIMENT 7/Experiment 5/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /EXPERIMENT 7/Experiment 5/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Experiment 5 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.wst.common.project.facet.core.builder 15 | 16 | 17 | 18 | 19 | org.eclipse.wst.validation.validationbuilder 20 | 21 | 22 | 23 | 24 | 25 | org.eclipse.jem.workbench.JavaEMFNature 26 | org.eclipse.wst.common.modulecore.ModuleCoreNature 27 | org.eclipse.wst.common.project.facet.core.nature 28 | org.eclipse.jdt.core.javanature 29 | org.eclipse.wst.jsdt.core.jsNature 30 | 31 | 32 | -------------------------------------------------------------------------------- /EXPERIMENT 7/Experiment 5/.settings/.jsdtscope: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /EXPERIMENT 7/Experiment 5/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=UTF-8 3 | -------------------------------------------------------------------------------- /EXPERIMENT 7/Experiment 5/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 4 | org.eclipse.jdt.core.compiler.compliance=17 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 7 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 8 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 9 | org.eclipse.jdt.core.compiler.release=enabled 10 | org.eclipse.jdt.core.compiler.source=17 11 | -------------------------------------------------------------------------------- /EXPERIMENT 7/Experiment 5/.settings/org.eclipse.wst.common.component: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /EXPERIMENT 7/Experiment 5/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /EXPERIMENT 7/Experiment 5/.settings/org.eclipse.wst.jsdt.ui.superType.container: -------------------------------------------------------------------------------- 1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary -------------------------------------------------------------------------------- /EXPERIMENT 7/Experiment 5/.settings/org.eclipse.wst.jsdt.ui.superType.name: -------------------------------------------------------------------------------- 1 | Window -------------------------------------------------------------------------------- /EXPERIMENT 7/Experiment 5/build/classes/DispData/DispData.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/EXPERIMENT 7/Experiment 5/build/classes/DispData/DispData.class -------------------------------------------------------------------------------- /EXPERIMENT 7/Experiment 5/build/classes/InsertData/InsertData.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/EXPERIMENT 7/Experiment 5/build/classes/InsertData/InsertData.class -------------------------------------------------------------------------------- /EXPERIMENT 7/Experiment 5/src/main/webapp/Insert.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | Insert title here 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 |
Enter Roll No:
Enter Name:
Enter Section: 24 |
Enter Subjet1 Mark:
Enter Subject2 Mark:
Enter Subjet3 Mark:
Enter Subject4 Mark:
Enter Subject5 Mark:
Enter Subject6 Mark:
Enter Lab1 Mark:
Enter Lab2 Mark:
52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /EXPERIMENT 7/Experiment 5/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /EXPERIMENT 7/Experiment 5/src/main/webapp/Search.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 |
11 | Enter your Roll No:
12 | 13 |
14 | 15 | 16 | -------------------------------------------------------------------------------- /EXPERIMENT 7/Experiment 5/src/main/webapp/WEB-INF/lib/mysql-connector-j-8.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/EXPERIMENT 7/Experiment 5/src/main/webapp/WEB-INF/lib/mysql-connector-j-8.3.0.jar -------------------------------------------------------------------------------- /EXPERIMENT 7/Experiment 6/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /EXPERIMENT 7/Experiment 6/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Experiment 6 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.wst.common.project.facet.core.builder 15 | 16 | 17 | 18 | 19 | org.eclipse.wst.validation.validationbuilder 20 | 21 | 22 | 23 | 24 | 25 | org.eclipse.jem.workbench.JavaEMFNature 26 | org.eclipse.wst.common.modulecore.ModuleCoreNature 27 | org.eclipse.wst.common.project.facet.core.nature 28 | org.eclipse.jdt.core.javanature 29 | org.eclipse.wst.jsdt.core.jsNature 30 | 31 | 32 | -------------------------------------------------------------------------------- /EXPERIMENT 7/Experiment 6/.settings/.jsdtscope: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /EXPERIMENT 7/Experiment 6/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=UTF-8 3 | -------------------------------------------------------------------------------- /EXPERIMENT 7/Experiment 6/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 4 | org.eclipse.jdt.core.compiler.compliance=17 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 7 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 8 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 9 | org.eclipse.jdt.core.compiler.release=enabled 10 | org.eclipse.jdt.core.compiler.source=17 11 | -------------------------------------------------------------------------------- /EXPERIMENT 7/Experiment 6/.settings/org.eclipse.wst.common.component: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /EXPERIMENT 7/Experiment 6/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /EXPERIMENT 7/Experiment 6/.settings/org.eclipse.wst.jsdt.ui.superType.container: -------------------------------------------------------------------------------- 1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary -------------------------------------------------------------------------------- /EXPERIMENT 7/Experiment 6/.settings/org.eclipse.wst.jsdt.ui.superType.name: -------------------------------------------------------------------------------- 1 | Window -------------------------------------------------------------------------------- /EXPERIMENT 7/Experiment 6/src/main/webapp/Disp.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | 3 | pageEncoding="ISO-8859-1"%> 4 | 5 | 6 | 7 | <%@ page import="java.sql.*" %> 8 | 9 | <%@ page import="java.io.*" %> 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | Insert title here 18 | 19 | 20 | 21 | 22 | 23 |

Employee Details

24 | 25 | <% 26 | 27 | try { 28 | 29 | 30 | Class.forName("com.mysql.jdbc.Driver"); 31 | Connection con=DriverManager.getConnection("jdbc:mysql://localhost:3308/module2","root","Akash@123"); 32 | Statement st = con.createStatement(); 33 | 34 | ResultSet rs = st.executeQuery("select * from employees"); 35 | 36 | %> 37 | 38 | 39 | 40 | 41 | 42 | <% 43 | 44 | while (rs.next()) { 45 | 46 | %> 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | <% } %> 63 | 64 | <% 65 | 66 | // close all the connections. 67 | 68 | rs.close(); 69 | 70 | st.close(); 71 | 72 | con.close(); 73 | 74 | } catch (Exception ex) { 75 | 76 | %> 77 | 78 | 79 | 80 | <% 81 | 82 | out.println("Unable to connect to database."); 83 | 84 | } 85 | 86 | %> 87 | 88 |
E.NoNameGenderDepartmentSalary
<%=rs.getInt(1)%><%=rs.getString(2)%><%=rs.getString(3)%><%=rs.getString(4)%><%=rs.getFloat(5)%>
89 | 90 | 91 | 92 | 95 | 96 | 97 | 98 |
93 | 94 |
99 | 100 | 101 | 102 | 103 | 104 | -------------------------------------------------------------------------------- /EXPERIMENT 7/Experiment 6/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /EXPERIMENT 7/Experiment 6/src/main/webapp/WEB-INF/lib/mysql-connector-j-8.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/EXPERIMENT 7/Experiment 6/src/main/webapp/WEB-INF/lib/mysql-connector-j-8.3.0.jar -------------------------------------------------------------------------------- /EXPERIMENT 7/Experiment_7/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /EXPERIMENT 7/Experiment_7/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Experiment_7 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.wst.common.project.facet.core.builder 15 | 16 | 17 | 18 | 19 | org.eclipse.wst.validation.validationbuilder 20 | 21 | 22 | 23 | 24 | 25 | org.eclipse.jem.workbench.JavaEMFNature 26 | org.eclipse.wst.common.modulecore.ModuleCoreNature 27 | org.eclipse.wst.common.project.facet.core.nature 28 | org.eclipse.jdt.core.javanature 29 | org.eclipse.wst.jsdt.core.jsNature 30 | 31 | 32 | -------------------------------------------------------------------------------- /EXPERIMENT 7/Experiment_7/.settings/.jsdtscope: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /EXPERIMENT 7/Experiment_7/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=UTF-8 3 | -------------------------------------------------------------------------------- /EXPERIMENT 7/Experiment_7/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 4 | org.eclipse.jdt.core.compiler.compliance=17 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 7 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 8 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 9 | org.eclipse.jdt.core.compiler.release=enabled 10 | org.eclipse.jdt.core.compiler.source=17 11 | -------------------------------------------------------------------------------- /EXPERIMENT 7/Experiment_7/.settings/org.eclipse.wst.common.component: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /EXPERIMENT 7/Experiment_7/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /EXPERIMENT 7/Experiment_7/.settings/org.eclipse.wst.jsdt.ui.superType.container: -------------------------------------------------------------------------------- 1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary -------------------------------------------------------------------------------- /EXPERIMENT 7/Experiment_7/.settings/org.eclipse.wst.jsdt.ui.superType.name: -------------------------------------------------------------------------------- 1 | Window -------------------------------------------------------------------------------- /EXPERIMENT 7/Experiment_7/build/classes/ControllerServlet/ControllerServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/EXPERIMENT 7/Experiment_7/build/classes/ControllerServlet/ControllerServlet.class -------------------------------------------------------------------------------- /EXPERIMENT 7/Experiment_7/build/classes/LoginBean/ControllerServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/EXPERIMENT 7/Experiment_7/build/classes/LoginBean/ControllerServlet.class -------------------------------------------------------------------------------- /EXPERIMENT 7/Experiment_7/build/classes/LoginBean/LoginBean.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/EXPERIMENT 7/Experiment_7/build/classes/LoginBean/LoginBean.class -------------------------------------------------------------------------------- /EXPERIMENT 7/Experiment_7/src/main/java/LoginBean/LoginBean.java: -------------------------------------------------------------------------------- 1 | package LoginBean; 2 | 3 | import java.lang.*; 4 | 5 | public class LoginBean { 6 | 7 | private String name,password; 8 | 9 | public String getName() { 10 | 11 | return name; 12 | 13 | } 14 | 15 | public void setName(String name) { 16 | 17 | this.name = name; 18 | 19 | } 20 | 21 | public String getPassword() { 22 | 23 | return password; 24 | 25 | } 26 | 27 | public void setPassword(String password) { 28 | 29 | this.password = password; 30 | 31 | } 32 | 33 | public boolean validate(){ 34 | 35 | if(password.equals("admin")){ 36 | 37 | return true; 38 | 39 | } 40 | 41 | else{ 42 | 43 | return false; 44 | 45 | } 46 | 47 | } 48 | 49 | } -------------------------------------------------------------------------------- /EXPERIMENT 7/Experiment_7/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /EXPERIMENT 7/Experiment_7/src/main/webapp/WEB-INF/lib/mysql-connector-j-8.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/EXPERIMENT 7/Experiment_7/src/main/webapp/WEB-INF/lib/mysql-connector-j-8.3.0.jar -------------------------------------------------------------------------------- /EXPERIMENT 7/Experiment_7/src/main/webapp/index.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | 11 | 12 | Name:
13 | 14 | Password:
15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /EXPERIMENT 7/Experiment_7/src/main/webapp/login-error.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 |

Sorry! username or password error

11 | 12 | <%@ include file="index.jsp" %> 13 | 14 | -------------------------------------------------------------------------------- /EXPERIMENT 7/Experiment_7/src/main/webapp/login-success.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | <%@page import="LoginBean.LoginBean"%> 11 | 12 |

You are successfully logged in!

13 | 14 | <% 15 | 16 | LoginBean bean=(LoginBean)request.getAttribute("bean"); 17 | 18 | out.print("Welcome, "+bean.getName()); 19 | 20 | %> 21 | 22 | -------------------------------------------------------------------------------- /EXPERIMENT 7/build/classes/ControllerServlet/ControllerServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/EXPERIMENT 7/build/classes/ControllerServlet/ControllerServlet.class -------------------------------------------------------------------------------- /EXPERIMENT 7/build/classes/LoginBean/ControllerServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/EXPERIMENT 7/build/classes/LoginBean/ControllerServlet.class -------------------------------------------------------------------------------- /EXPERIMENT 7/build/classes/LoginBean/LoginBean.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/EXPERIMENT 7/build/classes/LoginBean/LoginBean.class -------------------------------------------------------------------------------- /EXPERIMENT 7/src/main/java/LoginBean/ControllerServlet.java: -------------------------------------------------------------------------------- 1 | package LoginBean; 2 | 3 | import java.io.IOException; 4 | import java.io.PrintWriter; 5 | import java.sql.Connection; 6 | import java.sql.DriverManager; 7 | import java.sql.PreparedStatement; 8 | import java.sql.ResultSet; 9 | 10 | import jakarta.servlet.RequestDispatcher; 11 | import jakarta.servlet.ServletException; 12 | import jakarta.servlet.http.HttpServletRequest; 13 | import jakarta.servlet.http.HttpServletResponse; 14 | 15 | public class ControllerServlet { 16 | void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 17 | response.setContentType("text/html"); 18 | 19 | PrintWriter out=response.getWriter(); 20 | 21 | String name=request.getParameter("name"); 22 | 23 | String password=request.getParameter("password"); 24 | try{ 25 | Class.forName("com.mysql.jdbc.Driver"); 26 | Connection con=DriverManager.getConnection("jdbc:mysql://localhost:3308/project","root","Akash@123"); 27 | PreparedStatement st = con.prepareStatement("select * from register where name=? and password=?"); 28 | 29 | 30 | st.setString(1, name); 31 | st.setString(2, password); 32 | 33 | 34 | LoginBean bean=new LoginBean(); 35 | 36 | bean.setName(name); 37 | 38 | bean.setPassword(password); 39 | 40 | request.setAttribute("bean",bean); 41 | 42 | boolean status=bean.validate(); 43 | 44 | ResultSet rs = st.executeQuery(); 45 | if (rs.next()) { 46 | response.setContentType("text/html"); 47 | out.print("Welcome " + name); 48 | RequestDispatcher rd = request.getRequestDispatcher("/login-success.jsp"); 49 | rd.include(request, response); 50 | 51 | 52 | } else { 53 | response.setContentType("text/html"); 54 | out.print("Invalid email or password"); 55 | RequestDispatcher rd = request.getRequestDispatcher("/login-error.jsp"); 56 | rd.include(request, response); 57 | 58 | } 59 | 60 | } 61 | catch (Exception e) { 62 | System.out.println(e); 63 | response.setContentType("text/html"); 64 | out.print("Invalid email or password"); 65 | RequestDispatcher rd = request.getRequestDispatcher("/login-error.jsp"); 66 | rd.include(request, response); 67 | 68 | 69 | } 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /EXPERIMENT 7/src/main/java/LoginBean/LoginBean.java: -------------------------------------------------------------------------------- 1 | package LoginBean; 2 | 3 | import java.lang.*; 4 | 5 | public class LoginBean { 6 | 7 | private String name,password; 8 | 9 | public String getName() { 10 | 11 | return name; 12 | 13 | } 14 | 15 | public void setName(String name) { 16 | 17 | this.name = name; 18 | 19 | } 20 | 21 | public String getPassword() { 22 | 23 | return password; 24 | 25 | } 26 | 27 | public void setPassword(String password) { 28 | 29 | this.password = password; 30 | 31 | } 32 | 33 | public boolean validate(){ 34 | 35 | if(password.equals("admin")){ 36 | 37 | return true; 38 | 39 | } 40 | 41 | else{ 42 | 43 | return false; 44 | 45 | } 46 | 47 | } 48 | 49 | } -------------------------------------------------------------------------------- /EXPERIMENT 7/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /EXPERIMENT 7/src/main/webapp/WEB-INF/lib/mysql-connector-j-8.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/EXPERIMENT 7/src/main/webapp/WEB-INF/lib/mysql-connector-j-8.3.0.jar -------------------------------------------------------------------------------- /EXPERIMENT 7/src/main/webapp/index.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 |
11 | 12 | Name:
13 | 14 | Password:
15 | 16 | 17 | 18 |
19 | 20 | -------------------------------------------------------------------------------- /EXPERIMENT 7/src/main/webapp/login-error.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 |

Sorry! username or password error

11 | 12 | <%@ include file="index.jsp" %> 13 | 14 | -------------------------------------------------------------------------------- /EXPERIMENT 7/src/main/webapp/login-success.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | <%@page import="LoginBean.LoginBean"%> 11 | 12 |

You are successfully logged in!

13 | 14 | <% 15 | 16 | LoginBean bean=(LoginBean)request.getAttribute("bean"); 17 | 18 | out.print("Welcome, "+bean.getName()); 19 | 20 | %> 21 | 22 | -------------------------------------------------------------------------------- /EXPERIMENT 8/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /EXPERIMENT 8/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | exp_8 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.m2e.core.maven2Builder 15 | 16 | 17 | 18 | 19 | org.hibernate.eclipse.console.hibernateBuilder 20 | 21 | 22 | 23 | 24 | 25 | org.eclipse.jdt.core.javanature 26 | org.eclipse.m2e.core.maven2Nature 27 | org.hibernate.eclipse.console.hibernateNature 28 | 29 | 30 | -------------------------------------------------------------------------------- /EXPERIMENT 8/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/test/java=UTF-8 4 | encoding/=UTF-8 5 | -------------------------------------------------------------------------------- /EXPERIMENT 8/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 3 | org.eclipse.jdt.core.compiler.compliance=1.8 4 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 5 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 6 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore 7 | org.eclipse.jdt.core.compiler.release=disabled 8 | org.eclipse.jdt.core.compiler.source=1.8 9 | -------------------------------------------------------------------------------- /EXPERIMENT 8/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /EXPERIMENT 8/.settings/org.hibernate.eclipse.console.prefs: -------------------------------------------------------------------------------- 1 | default.configuration=exp_8 2 | eclipse.preferences.version=1 3 | hibernate3.enabled=true 4 | -------------------------------------------------------------------------------- /EXPERIMENT 8/pom.xml: -------------------------------------------------------------------------------- 1 | 3 | 4.0.0 4 | 5 | com.spring.hibernate 6 | Spring-Hibernate 7 | 0.0.1-SNAPSHOT 8 | jar 9 | 10 | Spring-Hibernate 11 | http://maven.apache.org 12 | 13 | 14 | UTF-8 15 | 16 | 17 | 18 | 19 | junit 20 | junit 21 | 3.8.1 22 | test 23 | 24 | 25 | 26 | 27 | org.hibernate 28 | hibernate-core 29 | 4.2.7.Final 30 | 31 | 32 | 33 | 34 | 35 | 36 | mysql 37 | mysql-connector-java 38 | 5.1.21 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /EXPERIMENT 8/src/main/java/com/pu/exp_8/App.java: -------------------------------------------------------------------------------- 1 | package com.pu.exp_8; 2 | 3 | import org.hibernate.Session; 4 | import org.hibernate.SessionFactory; 5 | import org.hibernate.Transaction; 6 | import org.hibernate.cfg.Configuration; 7 | /** 8 | * Hello world! 9 | * 10 | */ 11 | public class App 12 | { 13 | public static void main( String[] args ) 14 | { 15 | Student student = new Student(); 16 | student.setRoll(1); 17 | student.setName("god"); 18 | student.setMarks(100); 19 | //1. create Configuration object 20 | Configuration configuration=new Configuration().configure().addAnnotatedClass(Student.class); 21 | //2. create Session Factroy object 22 | SessionFactory sessionFactory=configuration.buildSessionFactory(); 23 | //3. Create Session object 24 | Session session=sessionFactory.openSession(); 25 | //4. Begin your transaction 26 | Transaction transaction=session.beginTransaction(); 27 | //5.Save your object to database 28 | session.save(student); 29 | //6/ Commit your transaction 30 | transaction.commit(); 31 | session.close(); 32 | sessionFactory.close(); 33 | } 34 | } 35 | 36 | 37 | -------------------------------------------------------------------------------- /EXPERIMENT 8/src/main/java/com/pu/exp_8/Student.java: -------------------------------------------------------------------------------- 1 | package com.pu.exp_8; 2 | 3 | import javax.persistence.Entity; 4 | import javax.persistence.Id; 5 | 6 | @Entity 7 | public class Student { 8 | @Id 9 | private int roll; 10 | private String name; 11 | private int marks; 12 | public int getRoll() { 13 | return roll; 14 | } 15 | public void setRoll(int roll) { 16 | this.roll = roll; 17 | } 18 | public String getName() { 19 | return name; 20 | } 21 | public void setName(String name) { 22 | this.name = name; 23 | } 24 | public int getMarks() { 25 | return marks; 26 | } 27 | public void setMarks(int marks) { 28 | this.marks = marks; 29 | } 30 | 31 | 32 | } 33 | 34 | -------------------------------------------------------------------------------- /EXPERIMENT 8/src/main/java/hibernate.cfg.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /EXPERIMENT 8/src/test/java/com/pu/exp_8/AppTest.java: -------------------------------------------------------------------------------- 1 | package com.pu.exp_8; 2 | 3 | import junit.framework.Test; 4 | import junit.framework.TestCase; 5 | import junit.framework.TestSuite; 6 | 7 | /** 8 | * Unit test for simple App. 9 | */ 10 | public class AppTest 11 | extends TestCase 12 | { 13 | /** 14 | * Create the test case 15 | * 16 | * @param testName name of the test case 17 | */ 18 | public AppTest( String testName ) 19 | { 20 | super( testName ); 21 | } 22 | 23 | /** 24 | * @return the suite of tests being tested 25 | */ 26 | public static Test suite() 27 | { 28 | return new TestSuite( AppTest.class ); 29 | } 30 | 31 | /** 32 | * Rigourous Test :-) 33 | */ 34 | public void testApp() 35 | { 36 | assertTrue( true ); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /EXPERIMENT 8/target/classes/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Build-Jdk-Spec: 17 3 | Created-By: Maven Integration for Eclipse 4 | 5 | -------------------------------------------------------------------------------- /EXPERIMENT 8/target/classes/META-INF/maven/com.spring.hibernate/Spring-Hibernate/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Fri May 03 23:09:31 IST 2024 3 | m2e.projectLocation=C\:\\Users\\Admin\\eclipse-workspace\\exp_8 4 | m2e.projectName=exp_8 5 | groupId=com.spring.hibernate 6 | artifactId=Spring-Hibernate 7 | version=0.0.1-SNAPSHOT 8 | -------------------------------------------------------------------------------- /EXPERIMENT 8/target/classes/META-INF/maven/com.spring.hibernate/Spring-Hibernate/pom.xml: -------------------------------------------------------------------------------- 1 | 3 | 4.0.0 4 | 5 | com.spring.hibernate 6 | Spring-Hibernate 7 | 0.0.1-SNAPSHOT 8 | jar 9 | 10 | Spring-Hibernate 11 | http://maven.apache.org 12 | 13 | 14 | UTF-8 15 | 16 | 17 | 18 | 19 | junit 20 | junit 21 | 3.8.1 22 | test 23 | 24 | 25 | 26 | 27 | org.hibernate 28 | hibernate-core 29 | 4.2.7.Final 30 | 31 | 32 | 33 | 34 | 35 | 36 | mysql 37 | mysql-connector-java 38 | 5.1.21 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /EXPERIMENT 8/target/classes/com/pu/exp_8/App.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/EXPERIMENT 8/target/classes/com/pu/exp_8/App.class -------------------------------------------------------------------------------- /EXPERIMENT 8/target/classes/com/pu/exp_8/Student.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/EXPERIMENT 8/target/classes/com/pu/exp_8/Student.class -------------------------------------------------------------------------------- /EXPERIMENT 8/target/classes/hibernate.cfg.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /EXPERIMENT 8/target/test-classes/com/pu/exp_8/AppTest.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/EXPERIMENT 8/target/test-classes/com/pu/exp_8/AppTest.class -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 AKASH KOBAL 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /LoginForm/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /LoginForm/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | LoginForm 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.wst.common.project.facet.core.builder 15 | 16 | 17 | 18 | 19 | org.eclipse.wst.validation.validationbuilder 20 | 21 | 22 | 23 | 24 | 25 | org.eclipse.jem.workbench.JavaEMFNature 26 | org.eclipse.wst.common.modulecore.ModuleCoreNature 27 | org.eclipse.wst.common.project.facet.core.nature 28 | org.eclipse.jdt.core.javanature 29 | org.eclipse.wst.jsdt.core.jsNature 30 | 31 | 32 | -------------------------------------------------------------------------------- /LoginForm/.settings/.jsdtscope: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /LoginForm/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=UTF-8 3 | -------------------------------------------------------------------------------- /LoginForm/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 4 | org.eclipse.jdt.core.compiler.compliance=17 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 7 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 8 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 9 | org.eclipse.jdt.core.compiler.release=enabled 10 | org.eclipse.jdt.core.compiler.source=17 11 | -------------------------------------------------------------------------------- /LoginForm/.settings/org.eclipse.wst.common.component: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /LoginForm/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /LoginForm/.settings/org.eclipse.wst.jsdt.ui.superType.container: -------------------------------------------------------------------------------- 1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary -------------------------------------------------------------------------------- /LoginForm/.settings/org.eclipse.wst.jsdt.ui.superType.name: -------------------------------------------------------------------------------- 1 | Window -------------------------------------------------------------------------------- /LoginForm/build/classes/login/login.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/LoginForm/build/classes/login/login.class -------------------------------------------------------------------------------- /LoginForm/src/main/java/login/login.java: -------------------------------------------------------------------------------- 1 | package login; 2 | 3 | import java.io.IOException; 4 | import java.io.PrintWriter; 5 | 6 | import jakarta.servlet.ServletException; 7 | import jakarta.servlet.annotation.WebServlet; 8 | import jakarta.servlet.http.HttpServlet; 9 | import jakarta.servlet.http.HttpServletRequest; 10 | import jakarta.servlet.http.HttpServletResponse; 11 | 12 | 13 | @WebServlet("/loginForm") 14 | public class login extends HttpServlet{ 15 | @Override 16 | protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { 17 | // TODO Auto-generated method stub 18 | // super.doGet(req, resp); 19 | 20 | 21 | String my_name = req.getParameter("name"); 22 | String my_password = req.getParameter("password"); 23 | 24 | PrintWriter out = resp.getWriter(); 25 | 26 | out.print("

Your Details

"); 27 | out.print("

Your Name :"+my_name+"

"); 28 | out.print("

Your Passowrd :"+my_password+"

"); 29 | 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /LoginForm/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /LoginForm/src/main/webapp/login.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Login Form 8 | 9 | 10 |
11 | Name :

12 | Password :

13 | 14 |
15 | 16 | -------------------------------------------------------------------------------- /RegistrationForm/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /RegistrationForm/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | RegistrationForm 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.wst.common.project.facet.core.builder 15 | 16 | 17 | 18 | 19 | org.eclipse.wst.validation.validationbuilder 20 | 21 | 22 | 23 | 24 | 25 | org.eclipse.jem.workbench.JavaEMFNature 26 | org.eclipse.wst.common.modulecore.ModuleCoreNature 27 | org.eclipse.wst.common.project.facet.core.nature 28 | org.eclipse.jdt.core.javanature 29 | org.eclipse.wst.jsdt.core.jsNature 30 | 31 | 32 | -------------------------------------------------------------------------------- /RegistrationForm/.settings/.jsdtscope: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /RegistrationForm/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=UTF-8 3 | -------------------------------------------------------------------------------- /RegistrationForm/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 4 | org.eclipse.jdt.core.compiler.compliance=17 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 7 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 8 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 9 | org.eclipse.jdt.core.compiler.release=enabled 10 | org.eclipse.jdt.core.compiler.source=17 11 | -------------------------------------------------------------------------------- /RegistrationForm/.settings/org.eclipse.wst.common.component: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /RegistrationForm/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /RegistrationForm/.settings/org.eclipse.wst.jsdt.ui.superType.container: -------------------------------------------------------------------------------- 1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary -------------------------------------------------------------------------------- /RegistrationForm/.settings/org.eclipse.wst.jsdt.ui.superType.name: -------------------------------------------------------------------------------- 1 | Window -------------------------------------------------------------------------------- /RegistrationForm/build/classes/register/register.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/RegistrationForm/build/classes/register/register.class -------------------------------------------------------------------------------- /RegistrationForm/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /RegistrationForm/src/main/webapp/register.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 |
11 | Name :

12 | Email :

13 | Password :

14 | 15 | 16 | 17 |
18 | 19 | 20 | -------------------------------------------------------------------------------- /insert_data_into_database/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /insert_data_into_database/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | insert_data_into_database 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /insert_data_into_database/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=UTF-8 3 | -------------------------------------------------------------------------------- /insert_data_into_database/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=17 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 13 | org.eclipse.jdt.core.compiler.release=enabled 14 | org.eclipse.jdt.core.compiler.source=17 15 | -------------------------------------------------------------------------------- /insert_data_into_database/README.md: -------------------------------------------------------------------------------- 1 | # Insert data into database using JDBC. 2 | ``` 3 | package insertData; 4 | 5 | import java.sql.Connection; 6 | import java.sql.DriverManager; 7 | import java.sql.PreparedStatement; 8 | import java.util.Scanner; 9 | 10 | public class insertData { 11 | 12 | private static Scanner sc; 13 | 14 | public static void main(String[] args) throws Exception { // throws Exception is used to handle the exception without using try-catch block 15 | 16 | sc = new Scanner(System.in); 17 | System.out.println("Enter the student details: "); 18 | System.out.print("Enter the student id: "); 19 | int id = sc.nextInt(); 20 | System.out.print("Enter the student name: "); 21 | String name = sc.next(); 22 | System.out.print("Enter the student branch: "); 23 | String branch = sc.next(); 24 | 25 | Class.forName("com.mysql.cj.jdbc.Driver"); // load and register the driver 26 | 27 | Connection connection = DriverManager.getConnection("jdbc:mysql://localhost:3308/jdbc_db", "root", "Akash@123"); // establish the connection 28 | 29 | PreparedStatement ps = connection.prepareStatement("insert into student values('"+id+"','"+name+"','"+branch+"')"); // execute the query") 30 | 31 | int i = ps.executeUpdate(); // execute the query 32 | if (i > 0) // if the record is inserted successfully then it will return 1 else 0 33 | System.out.println("Record inserted successfully"); 34 | else 35 | System.out.println("Record not inserted successfully"); 36 | 37 | } 38 | 39 | } 40 | ``` 41 | -------------------------------------------------------------------------------- /insert_data_into_database/bin/insertData/insertData.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/insert_data_into_database/bin/insertData/insertData.class -------------------------------------------------------------------------------- /insert_data_into_database/bin/module-info.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/insert_data_into_database/bin/module-info.class -------------------------------------------------------------------------------- /insert_data_into_database/src/insertData/insertData.java: -------------------------------------------------------------------------------- 1 | package insertData; 2 | 3 | import java.sql.Connection; 4 | import java.sql.DriverManager; 5 | import java.sql.PreparedStatement; 6 | import java.util.Scanner; 7 | 8 | public class insertData { 9 | 10 | private static Scanner sc; 11 | 12 | public static void main(String[] args) throws Exception { // throws Exception is used to handle the exception without using try-catch block 13 | 14 | sc = new Scanner(System.in); 15 | System.out.println("Enter the student details: "); 16 | System.out.print("Enter the student id: "); 17 | int id = sc.nextInt(); 18 | System.out.print("Enter the student name: "); 19 | String name = sc.next(); 20 | System.out.print("Enter the student branch: "); 21 | String branch = sc.next(); 22 | 23 | Class.forName("com.mysql.cj.jdbc.Driver"); // load and register the driver 24 | 25 | Connection connection = DriverManager.getConnection("jdbc:mysql://localhost:3308/jdbc_db", "root", "Akash@123"); // establish the connection 26 | 27 | PreparedStatement ps = connection.prepareStatement("insert into student values('"+id+"','"+name+"','"+branch+"')"); // execute the query") 28 | 29 | int i = ps.executeUpdate(); // execute the query 30 | if (i > 0) // if the record is inserted successfully then it will return 1 else 0 31 | System.out.println("Record inserted successfully"); 32 | else 33 | System.out.println("Record not inserted successfully"); 34 | 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /insert_data_into_database/src/module-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | */ 4 | /** 5 | * 6 | */ 7 | module insertData { 8 | requires java.sql; 9 | } -------------------------------------------------------------------------------- /labsheet5/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /labsheet5/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | labsheet5 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.wst.common.project.facet.core.builder 15 | 16 | 17 | 18 | 19 | org.jboss.tools.jst.web.kb.kbbuilder 20 | 21 | 22 | 23 | 24 | org.jboss.tools.cdi.core.cdibuilder 25 | 26 | 27 | 28 | 29 | org.eclipse.wst.validation.validationbuilder 30 | 31 | 32 | 33 | 34 | 35 | org.eclipse.jem.workbench.JavaEMFNature 36 | org.eclipse.wst.common.modulecore.ModuleCoreNature 37 | org.eclipse.wst.common.project.facet.core.nature 38 | org.eclipse.jdt.core.javanature 39 | org.jboss.tools.jst.web.kb.kbnature 40 | org.jboss.tools.cdi.core.cdinature 41 | org.eclipse.wst.jsdt.core.jsNature 42 | 43 | 44 | -------------------------------------------------------------------------------- /labsheet5/.settings/.jsdtscope: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /labsheet5/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=UTF-8 3 | -------------------------------------------------------------------------------- /labsheet5/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 4 | org.eclipse.jdt.core.compiler.compliance=17 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 7 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 8 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 9 | org.eclipse.jdt.core.compiler.release=enabled 10 | org.eclipse.jdt.core.compiler.source=17 11 | -------------------------------------------------------------------------------- /labsheet5/.settings/org.eclipse.wst.common.component: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /labsheet5/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /labsheet5/.settings/org.eclipse.wst.jsdt.ui.superType.container: -------------------------------------------------------------------------------- 1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary -------------------------------------------------------------------------------- /labsheet5/.settings/org.eclipse.wst.jsdt.ui.superType.name: -------------------------------------------------------------------------------- 1 | Window -------------------------------------------------------------------------------- /labsheet5/build/classes/DispData/DispData.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/labsheet5/build/classes/DispData/DispData.class -------------------------------------------------------------------------------- /labsheet5/build/classes/InsertData/InsertData.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/labsheet5/build/classes/InsertData/InsertData.class -------------------------------------------------------------------------------- /labsheet5/build/classes/InsertDataa/InsertDataa.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/labsheet5/build/classes/InsertDataa/InsertDataa.class -------------------------------------------------------------------------------- /labsheet5/src/main/java/InsertData/InsertData.java: -------------------------------------------------------------------------------- 1 | package InsertData; 2 | 3 | import java.io.IOException; 4 | import java.io.PrintWriter; 5 | import java.sql.Connection; 6 | import java.sql.DriverManager; 7 | import java.sql.PreparedStatement; 8 | 9 | import jakarta.servlet.ServletException; 10 | import jakarta.servlet.annotation.WebServlet; 11 | import jakarta.servlet.http.HttpServlet; 12 | import jakarta.servlet.http.HttpServletRequest; 13 | import jakarta.servlet.http.HttpServletResponse; 14 | 15 | /** 16 | * Servlet implementation class InsertData 17 | */ 18 | public class InsertData extends HttpServlet { 19 | private static final long serialVersionUID = 1L; 20 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 21 | // TODO Auto-generated method stub 22 | try{ 23 | Class.forName("com.mysql.jdbc.Driver"); 24 | Connection con=DriverManager.getConnection("jdbc:mysql://localhost:3308/god","root","Akash@123"); 25 | PreparedStatement st = con.prepareStatement("insert into mark values(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"); 26 | st.setInt(1, Integer.valueOf(request.getParameter("rollno"))); 27 | st.setString(2, request.getParameter("name")); 28 | st.setString(3, request.getParameter("section")); 29 | st.setInt(4, Integer.valueOf(request.getParameter("sub1"))); 30 | st.setInt(5, Integer.valueOf(request.getParameter("sub2"))); 31 | st.setInt(6, Integer.valueOf(request.getParameter("sub3"))); 32 | st.setInt(7, Integer.valueOf(request.getParameter("sub4"))); 33 | st.setInt(8, Integer.valueOf(request.getParameter("sub5"))); 34 | st.setInt(9, Integer.valueOf(request.getParameter("sub6"))); 35 | st.setInt(10, Integer.valueOf(request.getParameter("lab1"))); 36 | st.setInt(11, Integer.valueOf(request.getParameter("lab2"))); 37 | st.executeUpdate(); 38 | st.close(); 39 | con.close(); 40 | PrintWriter out = response.getWriter(); 41 | out.println("Successfully Inserted" 42 | + ""); 43 | }catch(Exception e){ 44 | System.out.println(e);} 45 | } 46 | } 47 | 48 | -------------------------------------------------------------------------------- /labsheet5/src/main/java/InsertDataa/InsertDataa.java: -------------------------------------------------------------------------------- 1 | package InsertDataa; 2 | 3 | import jakarta.servlet.annotation.WebServlet; 4 | import jakarta.servlet.http.HttpServlet; 5 | 6 | public class InsertDataa extends HttpServlet { 7 | private static final long serialVersionUID = 1L; 8 | 9 | 10 | } 11 | -------------------------------------------------------------------------------- /labsheet5/src/main/webapp/Insert.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | Insert title here 7 | 8 | 9 |

10 |
11 |
12 | 13 | Enter Section:
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 | 30 | 31 | -------------------------------------------------------------------------------- /labsheet5/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /labsheet5/src/main/webapp/Search.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 |
11 |
12 | 13 |
14 | 15 | 16 | -------------------------------------------------------------------------------- /labsheet5/src/main/webapp/WEB-INF/lib/mysql-connector-j-8.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/labsheet5/src/main/webapp/WEB-INF/lib/mysql-connector-j-8.3.0.jar -------------------------------------------------------------------------------- /labsheet5/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | InsertData 6 | InsertData 7 | InsertData.InsertData 8 | 9 | 10 | InsertData 11 | /InsertData 12 | 13 | labsheet5 14 | 15 | index.html 16 | index.htm 17 | index.jsp 18 | default.html 19 | default.htm 20 | default.jsp 21 | 22 | 23 | 24 | DispData 25 | DispData 26 | DispData.DispData 27 | 28 | 29 | DispData 30 | /DispData 31 | 32 | 33 | 34 | InsertDataa 35 | InsertDataa 36 | InsertDataa.InsertDataa 37 | 38 | 39 | InsertDataa 40 | /InsertDataa 41 | 42 | -------------------------------------------------------------------------------- /labsheet6/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /labsheet6/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | labsheet6 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.wst.common.project.facet.core.builder 15 | 16 | 17 | 18 | 19 | org.jboss.tools.jst.web.kb.kbbuilder 20 | 21 | 22 | 23 | 24 | org.jboss.tools.cdi.core.cdibuilder 25 | 26 | 27 | 28 | 29 | org.eclipse.wst.validation.validationbuilder 30 | 31 | 32 | 33 | 34 | 35 | org.eclipse.jem.workbench.JavaEMFNature 36 | org.eclipse.wst.common.modulecore.ModuleCoreNature 37 | org.eclipse.wst.common.project.facet.core.nature 38 | org.eclipse.jdt.core.javanature 39 | org.jboss.tools.jst.web.kb.kbnature 40 | org.jboss.tools.cdi.core.cdinature 41 | org.eclipse.wst.jsdt.core.jsNature 42 | 43 | 44 | -------------------------------------------------------------------------------- /labsheet6/.settings/.jsdtscope: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /labsheet6/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=UTF-8 3 | -------------------------------------------------------------------------------- /labsheet6/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 4 | org.eclipse.jdt.core.compiler.compliance=17 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 7 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 8 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 9 | org.eclipse.jdt.core.compiler.release=enabled 10 | org.eclipse.jdt.core.compiler.source=17 11 | -------------------------------------------------------------------------------- /labsheet6/.settings/org.eclipse.wst.common.component: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /labsheet6/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /labsheet6/.settings/org.eclipse.wst.jsdt.ui.superType.container: -------------------------------------------------------------------------------- 1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary -------------------------------------------------------------------------------- /labsheet6/.settings/org.eclipse.wst.jsdt.ui.superType.name: -------------------------------------------------------------------------------- 1 | Window -------------------------------------------------------------------------------- /labsheet6/src/main/webapp/Disp.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | <%@ page import="java.sql.*" %> 5 | <%@ page import="java.io.*" %> 6 | 7 | 8 | 9 | Insert title here 10 | 11 | 12 |

Employee Details

13 | <% 14 | try { 15 | Class.forName("com.mysql.jdbc.Driver"); 16 | Connection con=DriverManager.getConnection("jdbc:mysql://localhost:3308/god","root","Akash@123"); 17 | Statement st = con.createStatement(); 18 | ResultSet rs = st.executeQuery("select * from employee"); 19 | %> 20 | 21 | 22 | <% 23 | while (rs.next()) { 24 | %> 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | <% } %> 33 | <% 34 | // close all the connections. 35 | rs.close(); 36 | st.close(); 37 | con.close(); 38 | } catch (Exception ex) { 39 | %> 40 | 41 | <% 42 | out.println("Unable to connect to database."); 43 | } 44 | %> 45 |
E.NoNameGenderDepartmentSalary
<%=rs.getInt(1)%><%=rs.getString(2)%><%=rs.getString(3)%><%=rs.getString(4)%><%=rs.getFloat(5)%>
46 | 47 | 49 | 50 |
48 |
51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /labsheet6/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /labsheet6/src/main/webapp/WEB-INF/lib/mysql-connector-j-8.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/labsheet6/src/main/webapp/WEB-INF/lib/mysql-connector-j-8.3.0.jar -------------------------------------------------------------------------------- /labsheet7/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /labsheet7/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | labsheet7 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.wst.common.project.facet.core.builder 15 | 16 | 17 | 18 | 19 | org.jboss.tools.jst.web.kb.kbbuilder 20 | 21 | 22 | 23 | 24 | org.jboss.tools.cdi.core.cdibuilder 25 | 26 | 27 | 28 | 29 | org.eclipse.wst.validation.validationbuilder 30 | 31 | 32 | 33 | 34 | 35 | org.eclipse.jem.workbench.JavaEMFNature 36 | org.eclipse.wst.common.modulecore.ModuleCoreNature 37 | org.eclipse.wst.common.project.facet.core.nature 38 | org.eclipse.jdt.core.javanature 39 | org.jboss.tools.jst.web.kb.kbnature 40 | org.jboss.tools.cdi.core.cdinature 41 | org.eclipse.wst.jsdt.core.jsNature 42 | 43 | 44 | -------------------------------------------------------------------------------- /labsheet7/.settings/.jsdtscope: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /labsheet7/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=UTF-8 3 | -------------------------------------------------------------------------------- /labsheet7/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 4 | org.eclipse.jdt.core.compiler.compliance=17 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 7 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 8 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 9 | org.eclipse.jdt.core.compiler.release=enabled 10 | org.eclipse.jdt.core.compiler.source=17 11 | -------------------------------------------------------------------------------- /labsheet7/.settings/org.eclipse.wst.common.component: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /labsheet7/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /labsheet7/.settings/org.eclipse.wst.jsdt.ui.superType.container: -------------------------------------------------------------------------------- 1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary -------------------------------------------------------------------------------- /labsheet7/.settings/org.eclipse.wst.jsdt.ui.superType.name: -------------------------------------------------------------------------------- 1 | Window -------------------------------------------------------------------------------- /labsheet7/build/classes/ControllerServlet/ControllerServlet.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/labsheet7/build/classes/ControllerServlet/ControllerServlet.class -------------------------------------------------------------------------------- /labsheet7/build/classes/LoginBean/LoginBean.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/labsheet7/build/classes/LoginBean/LoginBean.class -------------------------------------------------------------------------------- /labsheet7/src/main/java/ControllerServlet/ControllerServlet.java: -------------------------------------------------------------------------------- 1 | package ControllerServlet; 2 | 3 | import jakarta.servlet.RequestDispatcher; 4 | import jakarta.servlet.ServletException; 5 | import jakarta.servlet.annotation.WebServlet; 6 | import jakarta.servlet.http.HttpServlet; 7 | import jakarta.servlet.http.HttpServletRequest; 8 | import jakarta.servlet.http.HttpServletResponse; 9 | import java.io.IOException; 10 | import java.io.PrintWriter; 11 | 12 | import LoginBean.LoginBean; 13 | 14 | public class ControllerServlet extends HttpServlet { 15 | private static final long serialVersionUID = 1L; 16 | 17 | 18 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 19 | // TODO Auto-generated method stub 20 | response.setContentType("text/html"); 21 | PrintWriter out=response.getWriter(); 22 | String name=request.getParameter("name"); 23 | String password=request.getParameter("password"); 24 | LoginBean bean=new LoginBean(); 25 | bean.setName(name); 26 | bean.setPassword(password); 27 | request.setAttribute("bean",bean); 28 | boolean status=bean.validate(); 29 | if(status){ 30 | RequestDispatcher rd=request.getRequestDispatcher("login-success.jsp"); 31 | rd.forward(request,response); 32 | } 33 | else{ 34 | RequestDispatcher rd=request.getRequestDispatcher("login-error.jsp"); 35 | rd.forward(request,response); 36 | } 37 | 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /labsheet7/src/main/java/LoginBean/LoginBean.java: -------------------------------------------------------------------------------- 1 | package LoginBean; 2 | import java.lang.*; 3 | public class LoginBean { 4 | private String name,password; 5 | public String getName() { 6 | return name; 7 | } 8 | public void setName(String name) { 9 | this.name = name; 10 | } 11 | public String getPassword() { 12 | return password; 13 | } 14 | public void setPassword(String password) { 15 | this.password = password; 16 | } 17 | public boolean validate(){ 18 | if(password.equals("admin")){ 19 | return true; 20 | } 21 | else{ 22 | return false; 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /labsheet7/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /labsheet7/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | ControllerServlet 6 | ControllerServlet 7 | ControllerServlet.ControllerServlet 8 | 9 | 10 | ControllerServlet 11 | /ControllerServlet 12 | 13 | labsheet7 14 | 15 | index.html 16 | index.htm 17 | index.jsp 18 | default.html 19 | default.htm 20 | default.jsp 21 | 22 | -------------------------------------------------------------------------------- /labsheet7/src/main/webapp/index.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | 11 | Name:
12 | Password:
13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /labsheet7/src/main/webapp/login-error.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 |

Sorry! username or password error

11 | <%@ include file="index.jsp" %> 12 | 13 | 14 | -------------------------------------------------------------------------------- /labsheet7/src/main/webapp/login-success.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | <%@page import="LoginBean.LoginBean"%> 11 |

You are successfully logged in!

12 | <% 13 | LoginBean bean=(LoginBean)request.getAttribute("bean"); 14 | out.print("Welcome, "+bean.getName()); 15 | %> 16 | 17 | 18 | -------------------------------------------------------------------------------- /labsheets/Exp1_M1.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/labsheets/Exp1_M1.docx -------------------------------------------------------------------------------- /labsheets/Exp2_M1.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/labsheets/Exp2_M1.docx -------------------------------------------------------------------------------- /labsheets/Exp3_M1.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/labsheets/Exp3_M1.docx -------------------------------------------------------------------------------- /labsheets/Exp4_M1.txt: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | class Student{ 3 | int rno; 4 | String name; 5 | int age; 6 | float fees; 7 | 8 | public Student(int rno, String name, int age, float fees) { 9 | super(); 10 | this.rno = rno; 11 | this.name = name; 12 | this.age = age; 13 | this.fees = fees; 14 | } 15 | 16 | 17 | @Override 18 | public String toString() { 19 | return rno + " " + name + " " + age + " " + fees; 20 | } 21 | } 22 | class Exp4 { 23 | public static void main(String[] args) { 24 | List s = new ArrayList(); 25 | s.add(new Student(1,"abc",20,20000.00f)); 26 | s.add(new Student(2,"xyz",15,15000.00f)); 27 | s.add(new Student(3,"def",10,10000.00f)); 28 | 29 | System.out.println("Sorting on the basis of name..."); 30 | 31 | // implementing lambda expression 32 | Collections.sort(s,(s1,s2)->{return s1.name.compareTo(s2.name);}); 33 | for(Student l:s){ 34 | System.out.println(l); 35 | } 36 | System.out.println("Sorting by age"); 37 | 38 | Collections.sort(s,(s1,s2)-> s1.age - s2.age); 39 | s.forEach((l)->System.out.println(l)); 40 | 41 | System.out.println("Sorting by Fees"); 42 | 43 | Collections.sort(s,(s1,s2)-> (int)s1.fees - (int)s2.fees); 44 | s.forEach((l)->System.out.println(l)); 45 | 46 | } 47 | } -------------------------------------------------------------------------------- /module/JavaAllComponents/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /module/JavaAllComponents/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | JavaAllComponents 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /module/JavaAllComponents/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=UTF-8 3 | -------------------------------------------------------------------------------- /module/JavaAllComponents/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=17 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 13 | org.eclipse.jdt.core.compiler.release=enabled 14 | org.eclipse.jdt.core.compiler.source=17 15 | -------------------------------------------------------------------------------- /module/JavaAllComponents/bin/allcompo/allcompo.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/module/JavaAllComponents/bin/allcompo/allcompo.class -------------------------------------------------------------------------------- /module/JavaAllComponents/src/allcompo/allcompo.java: -------------------------------------------------------------------------------- 1 | package allcompo; 2 | 3 | import java.sql.Connection; 4 | import java.sql.DriverManager; 5 | import java.sql.PreparedStatement; 6 | import java.util.Scanner; 7 | 8 | public class allcompo{ 9 | 10 | public static void main(String[] args) throws Exception{ 11 | // TODO Auto-generated method stub 12 | System.out.println("Enter Your Details :"); 13 | Scanner sc = new Scanner(System.in); 14 | System.out.println("Enter Your Name :"); 15 | String name = sc.nextLine(); 16 | System.out.println("Enter Your Roll No :"); 17 | String rollNo = sc.nextLine(); 18 | System.out.println("Enter Your Email :"); 19 | String email = sc.nextLine(); 20 | System.out.println("Enter Your Password :"); 21 | String password = sc.nextLine(); 22 | System.out.println("Enter Your Date of Birth :"); 23 | String dob = sc.nextLine(); 24 | System.out.println("Enter Your Phone No :"); 25 | String phoneNo = sc.nextLine(); 26 | System.out.println("Enter Your Gender :"); 27 | String gender = sc.nextLine(); 28 | System.out.println("Enter Your Address:"); 29 | String address = sc.nextLine(); 30 | 31 | 32 | try { 33 | Class.forName("com.mysql.cj.jdbc.Driver"); 34 | Connection con=DriverManager.getConnection("jdbc:mysql://localhost:3308/allCompo","root","Akash@123"); 35 | 36 | PreparedStatement ps = con.prepareStatement("INSERT INTO allCompo values(?,?,?,?,?,?,?,?)"); 37 | ps.setString(1,name); 38 | ps.setString(2,rollNo); 39 | ps.setString(3,email); 40 | ps.setString(4,password); 41 | ps.setString(5,dob); 42 | ps.setString(6,phoneNo); 43 | ps.setString(7,gender); 44 | ps.setString(8,address); 45 | 46 | ps.executeUpdate(); 47 | System.out.println("Data Inserted Successfully"); 48 | } 49 | catch (Exception e) { 50 | System.out.println("Failed to insert data"+e); 51 | } 52 | 53 | 54 | } 55 | } 56 | 57 | /* 58 | create database allCompo; 59 | 60 | use allCompo; 61 | 62 | create table allCompo(name varchar(255),rollNo varchar(255),email varchar(255),password varchar(255),dob varchar( 63 | 255),phoneNo varchar(255),gender varchar(255),address varchar(255)); 64 | 65 | select * from allCompo; 66 | 67 | */ 68 | 69 | -------------------------------------------------------------------------------- /module/JavaAllComponents/src/module-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | */ 4 | /** 5 | * 6 | */ 7 | -------------------------------------------------------------------------------- /module/Project With All Components/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /module/Project With All Components/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Project With All Components 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.wst.common.project.facet.core.builder 15 | 16 | 17 | 18 | 19 | org.eclipse.wst.validation.validationbuilder 20 | 21 | 22 | 23 | 24 | 25 | org.eclipse.jem.workbench.JavaEMFNature 26 | org.eclipse.wst.common.modulecore.ModuleCoreNature 27 | org.eclipse.wst.common.project.facet.core.nature 28 | org.eclipse.jdt.core.javanature 29 | org.eclipse.wst.jsdt.core.jsNature 30 | 31 | 32 | -------------------------------------------------------------------------------- /module/Project With All Components/.settings/.jsdtscope: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /module/Project With All Components/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=UTF-8 3 | -------------------------------------------------------------------------------- /module/Project With All Components/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 4 | org.eclipse.jdt.core.compiler.compliance=17 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 7 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 8 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 9 | org.eclipse.jdt.core.compiler.release=enabled 10 | org.eclipse.jdt.core.compiler.source=17 11 | -------------------------------------------------------------------------------- /module/Project With All Components/.settings/org.eclipse.wst.common.component: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /module/Project With All Components/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /module/Project With All Components/.settings/org.eclipse.wst.jsdt.ui.superType.container: -------------------------------------------------------------------------------- 1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary -------------------------------------------------------------------------------- /module/Project With All Components/.settings/org.eclipse.wst.jsdt.ui.superType.name: -------------------------------------------------------------------------------- 1 | Window -------------------------------------------------------------------------------- /module/Project With All Components/build/classes/allCompo/allCompo.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/module/Project With All Components/build/classes/allCompo/allCompo.class -------------------------------------------------------------------------------- /module/Project With All Components/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /module/Project With All Components/src/main/webapp/WEB-INF/lib/mysql-connector-j-8.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/module/Project With All Components/src/main/webapp/WEB-INF/lib/mysql-connector-j-8.3.0.jar -------------------------------------------------------------------------------- /module/Project With All Components/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Project With All Components 4 | 5 | index.html 6 | index.jsp 7 | index.htm 8 | default.html 9 | default.jsp 10 | default.htm 11 | 12 | -------------------------------------------------------------------------------- /module/Project With All Components/src/main/webapp/allComponents.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 |

All Components

11 |
12 |

13 |

14 |

15 |

16 |

17 |

18 | Male 19 | Female

20 |

21 | 22 |
23 | 24 | 25 | -------------------------------------------------------------------------------- /module/Student Registration Form/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /module/Student Registration Form/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Student Registration Form 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.wst.common.project.facet.core.builder 15 | 16 | 17 | 18 | 19 | org.eclipse.wst.validation.validationbuilder 20 | 21 | 22 | 23 | 24 | 25 | org.eclipse.jem.workbench.JavaEMFNature 26 | org.eclipse.wst.common.modulecore.ModuleCoreNature 27 | org.eclipse.wst.common.project.facet.core.nature 28 | org.eclipse.jdt.core.javanature 29 | org.eclipse.wst.jsdt.core.jsNature 30 | 31 | 32 | -------------------------------------------------------------------------------- /module/Student Registration Form/.settings/.jsdtscope: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /module/Student Registration Form/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=UTF-8 3 | -------------------------------------------------------------------------------- /module/Student Registration Form/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 4 | org.eclipse.jdt.core.compiler.compliance=17 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 7 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 8 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 9 | org.eclipse.jdt.core.compiler.release=enabled 10 | org.eclipse.jdt.core.compiler.source=17 11 | -------------------------------------------------------------------------------- /module/Student Registration Form/.settings/org.eclipse.wst.common.component: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /module/Student Registration Form/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /module/Student Registration Form/.settings/org.eclipse.wst.jsdt.ui.superType.container: -------------------------------------------------------------------------------- 1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary -------------------------------------------------------------------------------- /module/Student Registration Form/.settings/org.eclipse.wst.jsdt.ui.superType.name: -------------------------------------------------------------------------------- 1 | Window -------------------------------------------------------------------------------- /module/Student Registration Form/build/classes/studentInfo/register.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/module/Student Registration Form/build/classes/studentInfo/register.class -------------------------------------------------------------------------------- /module/Student Registration Form/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /module/Student Registration Form/src/main/webapp/WEB-INF/lib/mysql-connector-j-8.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/module/Student Registration Form/src/main/webapp/WEB-INF/lib/mysql-connector-j-8.3.0.jar -------------------------------------------------------------------------------- /module/Student Registration Form/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Student Registration Form 4 | 5 | index.html 6 | index.jsp 7 | index.htm 8 | default.html 9 | default.jsp 10 | default.htm 11 | 12 | -------------------------------------------------------------------------------- /module/Student Registration Form/src/main/webapp/index.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 |

Student Registration Form

11 |
12 |

13 |

14 |

15 |

16 | 17 |
18 | 19 | -------------------------------------------------------------------------------- /module/experimentFour/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /module/experimentFour/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | experimentFour 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /module/experimentFour/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=UTF-8 3 | -------------------------------------------------------------------------------- /module/experimentFour/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=17 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 13 | org.eclipse.jdt.core.compiler.release=enabled 14 | org.eclipse.jdt.core.compiler.source=17 15 | -------------------------------------------------------------------------------- /module/experimentFour/bin/experimentFour/expFour.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/module/experimentFour/bin/experimentFour/expFour.class -------------------------------------------------------------------------------- /module/experimentFour/bin/module-info.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/module/experimentFour/bin/module-info.class -------------------------------------------------------------------------------- /module/experimentFour/src/experimentFour/expFour.java: -------------------------------------------------------------------------------- 1 | package experimentFour; 2 | 3 | import java.util.ArrayList; 4 | import java.util.Collections; 5 | 6 | public class expFour { 7 | int rno; 8 | String name; 9 | int age; 10 | float fees; 11 | 12 | public expFour(int rno, String name, int age, float fees) { 13 | this.rno = rno; 14 | this.name = name; 15 | this.age = age; 16 | this.fees = fees; 17 | } 18 | @Override 19 | public String toString() { 20 | return rno + " " + name + " " + age + " " + fees; 21 | } 22 | 23 | public static void main(String[] args) { 24 | // TODO Auto-generated method stub 25 | ArrayList s = new ArrayList(); 26 | s.add(new expFour(101, "Vijay", 23, 5600)); 27 | s.add(new expFour(102, "Ajay", 27, 7800)); 28 | s.add(new expFour(103, "Jai", 21, 4500)); 29 | System.out.println("Sorting on the basis of name..."); 30 | 31 | // implementing lambda expression 32 | Collections.sort(s,(s1,s2)->{return s1.name.compareTo(s2.name);}); 33 | for(expFour l:s){ 34 | System.out.println(l); 35 | } 36 | System.out.println("Sorting by age"); 37 | 38 | Collections.sort(s,(s1,s2)-> s1.age - s2.age); 39 | s.forEach((l)->System.out.println(l)); 40 | 41 | System.out.println("Sorting by Fees"); 42 | 43 | Collections.sort(s,(s1,s2)-> (int)s1.fees - (int)s2.fees); 44 | s.forEach((l)->System.out.println(l)); 45 | } 46 | 47 | } 48 | 49 | -------------------------------------------------------------------------------- /module/experimentFour/src/module-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | */ 4 | /** 5 | * 6 | */ 7 | module experimentFour { 8 | } -------------------------------------------------------------------------------- /module/experimentThree/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /module/experimentThree/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | experimentThree 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /module/experimentThree/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=UTF-8 3 | -------------------------------------------------------------------------------- /module/experimentThree/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=17 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 13 | org.eclipse.jdt.core.compiler.release=enabled 14 | org.eclipse.jdt.core.compiler.source=17 15 | -------------------------------------------------------------------------------- /module/experimentThree/bin/experimentThree/jdbc.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/module/experimentThree/bin/experimentThree/jdbc.class -------------------------------------------------------------------------------- /module/experimentThree/bin/module-info.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/module/experimentThree/bin/module-info.class -------------------------------------------------------------------------------- /module/experimentThree/src/module-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | */ 4 | /** 5 | * 6 | */ 7 | module experimentThree { 8 | requires java.sql; 9 | } -------------------------------------------------------------------------------- /module/experiment_one/.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | # Editor-based HTTP Client requests 5 | /httpRequests/ 6 | # Datasource local storage ignored files 7 | /dataSources/ 8 | /dataSources.local.xml 9 | -------------------------------------------------------------------------------- /module/experiment_one/.idea/aws.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | -------------------------------------------------------------------------------- /module/experiment_one/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /module/experiment_one/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /module/experiment_one/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /module/experiment_one/module1.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /module/experiment_one/out/production/module1/module1/experiment1/Deserial.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/module/experiment_one/out/production/module1/module1/experiment1/Deserial.class -------------------------------------------------------------------------------- /module/experiment_one/out/production/module1/module1/experiment1/Serial.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/module/experiment_one/out/production/module1/module1/experiment1/Serial.class -------------------------------------------------------------------------------- /module/experiment_one/out/production/module1/module1/experiment1/Student.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/module/experiment_one/out/production/module1/module1/experiment1/Student.class -------------------------------------------------------------------------------- /module/experiment_one/out/production/module1/module1/experiment1/file.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/module/experiment_one/out/production/module1/module1/experiment1/file.txt -------------------------------------------------------------------------------- /module/experiment_one/src/module1/experiment1/Deserial.java: -------------------------------------------------------------------------------- 1 | package module1.experiment1; 2 | 3 | import java.io.FileInputStream; 4 | import java.io.FileOutputStream; 5 | import java.io.ObjectInputStream; 6 | 7 | public class Deserial { 8 | public static void main(String[] args) { 9 | try { 10 | FileInputStream fileInputStream = new FileInputStream("C:\\Users\\Admin\\IdeaProjects\\module1\\src\\module1\\experiment1\\file.txt"); 11 | ObjectInputStream objectInputStream = new ObjectInputStream(fileInputStream); 12 | Student student = (Student) objectInputStream.readObject(); 13 | System.out.println(student); 14 | objectInputStream.close(); 15 | 16 | } 17 | catch (Exception e){ 18 | System.out.println(e); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /module/experiment_one/src/module1/experiment1/Serial.java: -------------------------------------------------------------------------------- 1 | package module1.experiment1; 2 | 3 | import java.io.FileOutputStream; 4 | import java.io.ObjectOutputStream; 5 | 6 | public class Serial { 7 | public static void main(String[] args) { 8 | try { 9 | Student s1 = new Student(1,"Akash",115000); 10 | FileOutputStream fileOutputStream = new FileOutputStream("C:\\Users\\Admin\\IdeaProjects\\module1\\src\\module1\\experiment1\\file.txt"); 11 | ObjectOutputStream objectOutputStream = new ObjectOutputStream(fileOutputStream); 12 | objectOutputStream.writeObject(s1); 13 | objectOutputStream.flush(); 14 | objectOutputStream.close(); 15 | System.out.println("Sucess"); 16 | 17 | } 18 | catch (Exception e){ 19 | System.out.println(e); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /module/experiment_one/src/module1/experiment1/Student.java: -------------------------------------------------------------------------------- 1 | package module1.experiment1; 2 | 3 | import java.io.Serializable; 4 | 5 | public class Student implements Serializable { 6 | int rollNo; 7 | String name; 8 | float fees; 9 | public Student(int id, String name, float fees){ 10 | this.rollNo = id; 11 | this.name = name; 12 | this.fees = fees; 13 | } 14 | public String toString(){ 15 | return "RollNo : "+rollNo+"\n"+ 16 | "Name : "+name+"\n"+ 17 | "Fees : "+fees; 18 | } 19 | 20 | } 21 | 22 | -------------------------------------------------------------------------------- /module/experiment_one/src/module1/experiment1/file.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/module/experiment_one/src/module1/experiment1/file.txt -------------------------------------------------------------------------------- /module/experiment_two/.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | # Editor-based HTTP Client requests 5 | /httpRequests/ 6 | # Datasource local storage ignored files 7 | /dataSources/ 8 | /dataSources.local.xml 9 | -------------------------------------------------------------------------------- /module/experiment_two/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /module/experiment_two/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /module/experiment_two/experiment_two.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /module/experiment_two/out/production/experiment_two/AgeComparator.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/module/experiment_two/out/production/experiment_two/AgeComparator.class -------------------------------------------------------------------------------- /module/experiment_two/out/production/experiment_two/FeesComprator.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/module/experiment_two/out/production/experiment_two/FeesComprator.class -------------------------------------------------------------------------------- /module/experiment_two/out/production/experiment_two/Main$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/module/experiment_two/out/production/experiment_two/Main$1.class -------------------------------------------------------------------------------- /module/experiment_two/out/production/experiment_two/Main$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/module/experiment_two/out/production/experiment_two/Main$2.class -------------------------------------------------------------------------------- /module/experiment_two/out/production/experiment_two/Main.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/module/experiment_two/out/production/experiment_two/Main.class -------------------------------------------------------------------------------- /module/experiment_two/out/production/experiment_two/NameComprator.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/module/experiment_two/out/production/experiment_two/NameComprator.class -------------------------------------------------------------------------------- /module/experiment_two/out/production/experiment_two/Student.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/module/experiment_two/out/production/experiment_two/Student.class -------------------------------------------------------------------------------- /module/insert_data_into_database/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /module/insert_data_into_database/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | insert_data_into_database 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /module/insert_data_into_database/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=UTF-8 3 | -------------------------------------------------------------------------------- /module/insert_data_into_database/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=17 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 13 | org.eclipse.jdt.core.compiler.release=enabled 14 | org.eclipse.jdt.core.compiler.source=17 15 | -------------------------------------------------------------------------------- /module/insert_data_into_database/bin/insertData/insertData.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/module/insert_data_into_database/bin/insertData/insertData.class -------------------------------------------------------------------------------- /module/insert_data_into_database/bin/module-info.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/module/insert_data_into_database/bin/module-info.class -------------------------------------------------------------------------------- /module/insert_data_into_database/src/insertData/insertData.java: -------------------------------------------------------------------------------- 1 | package insertData; 2 | 3 | import java.sql.Connection; 4 | import java.sql.DriverManager; 5 | import java.sql.PreparedStatement; 6 | import java.util.Scanner; 7 | 8 | public class insertData { 9 | 10 | private static Scanner sc; 11 | 12 | public static void main(String[] args) throws Exception { // throws Exception is used to handle the exception without using try-catch block 13 | 14 | sc = new Scanner(System.in); 15 | System.out.println("Enter the student details: "); 16 | System.out.print("Enter the student id: "); 17 | int id = sc.nextInt(); 18 | System.out.print("Enter the student name: "); 19 | String name = sc.next(); 20 | System.out.print("Enter the student branch: "); 21 | String branch = sc.next(); 22 | 23 | Class.forName("com.mysql.cj.jdbc.Driver"); // load and register the driver 24 | 25 | Connection connection = DriverManager.getConnection("jdbc:mysql://localhost:3308/jdbc_db", "root", "Akash@123"); // establish the connection 26 | 27 | PreparedStatement ps = connection.prepareStatement("insert into student values('"+id+"','"+name+"','"+branch+"')"); // execute the query") 28 | 29 | int i = ps.executeUpdate(); // execute the query 30 | if (i > 0) // if the record is inserted successfully then it will return 1 else 0 31 | System.out.println("Record inserted successfully"); 32 | else 33 | System.out.println("Record not inserted successfully"); 34 | 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /module/insert_data_into_database/src/module-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | */ 4 | /** 5 | * 6 | */ 7 | module insertData { 8 | requires java.sql; 9 | } -------------------------------------------------------------------------------- /mysql-connector-j-8.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/mysql-connector-j-8.3.0.jar -------------------------------------------------------------------------------- /serializationAndDeseralization/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /serializationAndDeseralization/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | serializationAndDeseralization 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /serializationAndDeseralization/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding/=UTF-8 3 | -------------------------------------------------------------------------------- /serializationAndDeseralization/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=17 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning 13 | org.eclipse.jdt.core.compiler.release=enabled 14 | org.eclipse.jdt.core.compiler.source=17 15 | -------------------------------------------------------------------------------- /serializationAndDeseralization/bin/module-info.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/serializationAndDeseralization/bin/module-info.class -------------------------------------------------------------------------------- /serializationAndDeseralization/bin/serializationAndDeseralization/deserial.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/serializationAndDeseralization/bin/serializationAndDeseralization/deserial.class -------------------------------------------------------------------------------- /serializationAndDeseralization/bin/serializationAndDeseralization/serial.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/serializationAndDeseralization/bin/serializationAndDeseralization/serial.class -------------------------------------------------------------------------------- /serializationAndDeseralization/bin/serializationAndDeseralization/student.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AkashKobal/java-full-stack-developement/47d7451db83ae9e00c8a1708ac75c26edda5e262/serializationAndDeseralization/bin/serializationAndDeseralization/student.class -------------------------------------------------------------------------------- /serializationAndDeseralization/src/module-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | */ 4 | /** 5 | * 6 | */ 7 | module serializationAndDeseralization { 8 | } -------------------------------------------------------------------------------- /serializationAndDeseralization/src/serializationAndDeseralization/deserial.java: -------------------------------------------------------------------------------- 1 | package serializationAndDeseralization; 2 | 3 | import java.io.FileInputStream; 4 | import java.io.FileOutputStream; 5 | import java.io.ObjectInputStream; 6 | 7 | public class deserial { 8 | public static void main(String[] args) { 9 | try { 10 | FileInputStream fileInputStream = new FileInputStream("C:\\Users\\Admin\\IdeaProjects\\module1\\src\\module1\\experiment1\\file.txt"); 11 | ObjectInputStream objectInputStream = new ObjectInputStream(fileInputStream); 12 | student s1 = (student) objectInputStream.readObject(); 13 | student s2 = (student) objectInputStream.readObject(); 14 | student s3 = (student) objectInputStream.readObject(); 15 | student s4 = (student) objectInputStream.readObject(); 16 | student s5 = (student) objectInputStream.readObject(); 17 | 18 | System.out.println(s1); 19 | System.out.println(s2); 20 | System.out.println(s3); 21 | System.out.println(s4); 22 | System.out.println(s5); 23 | objectInputStream.close(); 24 | 25 | } 26 | catch (Exception e){ 27 | System.out.println(e); 28 | } 29 | } 30 | } 31 | 32 | -------------------------------------------------------------------------------- /serializationAndDeseralization/src/serializationAndDeseralization/serial.java: -------------------------------------------------------------------------------- 1 | package serializationAndDeseralization; 2 | import java.io.FileOutputStream; 3 | import java.io.ObjectOutputStream; 4 | 5 | public class serial { 6 | public static void main(String[] args) { 7 | try { 8 | student s1 = new student(1,116,"Akash","CSE","PU"); 9 | student s2 = new student(2,117,"Rahul","CSE","PU"); 10 | student s3 = new student(3,118,"Rohit","CSE","PU"); 11 | student s4 = new student(4,119,"Raj","CSE","PU"); 12 | student s5 = new student(5,120,"Ravi","CSE","PU"); 13 | 14 | FileOutputStream fileOutputStream = new FileOutputStream("C:\\Users\\Admin\\IdeaProjects\\module1\\src\\module1\\experiment1\\file.txt"); 15 | ObjectOutputStream objectOutputStream = new ObjectOutputStream(fileOutputStream); 16 | objectOutputStream.writeObject(s1); 17 | objectOutputStream.writeObject(s2); 18 | objectOutputStream.writeObject(s3); 19 | objectOutputStream.writeObject(s4); 20 | objectOutputStream.writeObject(s5); 21 | objectOutputStream.flush(); 22 | objectOutputStream.close(); 23 | System.out.println("Sucess"); 24 | 25 | } 26 | catch (Exception e){ 27 | System.out.println(e); 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /serializationAndDeseralization/src/serializationAndDeseralization/student.java: -------------------------------------------------------------------------------- 1 | package serializationAndDeseralization; 2 | 3 | import java.io.Serializable; 4 | 5 | public class student implements Serializable { 6 | int id; 7 | int rollNo; 8 | String name; 9 | String branch; 10 | String college; 11 | 12 | public student(int id, int rollNo, String name, String branch, String college) { 13 | super(); 14 | this.id = id; 15 | this.rollNo = rollNo; 16 | this.name = name; 17 | this.branch = branch; 18 | this.college = college; 19 | } 20 | public String toString(){ 21 | return "Student [id=" + id + ", rollNo=" + rollNo + ", name=" + name + ", branch=" + branch + ", college=" + college + "]"; 22 | } 23 | 24 | } 25 | --------------------------------------------------------------------------------