Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java file #28

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions CL-BSCSD-21-13/mavenproject1/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.mycompany</groupId>
<artifactId>mavenproject1</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>15</maven.compiler.source>
<maven.compiler.target>15</maven.compiler.target>
</properties>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.mycompany.mavenproject1;

/**
*
* @author Mohamed Ali
*/
public class App {

public static void main(String [] args){
System.out.println("Hello World");
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.mycompany.mavenproject1;

/**
*
* @author Mohamed Ali
*/
public class Student {


}
30 changes: 30 additions & 0 deletions CL-BSCSD-21-13/mavenproject1/src/main/java/package1/Person.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package package1;

/**
*
* @author Mohamed Ali
*/
class Person {
private String firstname;
private String lastname;

public String getFirstname() {
return this.firstname;
}

public void setFirstname (String firstname){
this.firstname = firstname;
}
public String getLastname (){
return lastname;
}

public void setLastname (String lastname){
this.lastname = lastname;
}
}
16 changes: 16 additions & 0 deletions CL-BSCSD-21-13/mavenproject1/src/main/java/package1/Student.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package package1;

/**
*
* @author Mohamed Ali
*/
public class Student extends Person {
private String id;
mohamedeli marked this conversation as resolved.
Show resolved Hide resolved


}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
com\mycompany\mavenproject1\App.class
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
D:\Advance pro\mavenproject1\src\main\java\com\mycompany\mavenproject1\App.java