Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Tutoria_Examples_T03
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Operate
Terraform modules
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mahboobe Shakeri
Tutoria_Examples_T03
Commits
a48e5f77
Commit
a48e5f77
authored
5 months ago
by
Mahboobe Shakeri
Browse files
Options
Downloads
Patches
Plain Diff
packqge added with a class
parent
442cf1e5
Branches
main
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Main.java
+5
-0
5 additions, 0 deletions
src/Main.java
src/cpsc219/fall2024/student.java
+21
-0
21 additions, 0 deletions
src/cpsc219/fall2024/student.java
with
26 additions
and
0 deletions
src/Main.java
+
5
−
0
View file @
a48e5f77
//TIP To <b>Run</b> code, press <shortcut actionId="Run"/> or
//TIP To <b>Run</b> code, press <shortcut actionId="Run"/> or
// click the <icon src="AllIcons.Actions.Execute"/> icon in the gutter.
// click the <icon src="AllIcons.Actions.Execute"/> icon in the gutter.
import
cpsc219.fall2024.*
;
import
java.util.Scanner
;
import
java.util.Scanner
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.HashSet
;
import
java.util.HashSet
;
...
@@ -9,6 +11,9 @@ import java.io.*;
...
@@ -9,6 +11,9 @@ import java.io.*;
public
class
Main
{
public
class
Main
{
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
student
myStudent
=
new
student
(
"30192525"
,
"mahboobe"
,
"shakeri"
,
26
);
System
.
out
.
println
(
myStudent
.
getFirst_name
());
// String test = "My name is John and I am 25 years old.";
// String test = "My name is John and I am 25 years old.";
// System.out.println(test.toLowerCase());
// System.out.println(test.toLowerCase());
// System.out.println(test);
// System.out.println(test);
...
...
This diff is collapsed.
Click to expand it.
src/cpsc219/fall2024/student.java
0 → 100644
+
21
−
0
View file @
a48e5f77
package
cpsc219.fall2024
;
public
class
student
{
private
String
id
;
private
String
first_name
;
private
String
last_name
;
private
int
age
;
public
student
(
String
id
,
String
first_name
,
String
last_name
,
int
age
)
{
this
.
id
=
id
;
this
.
first_name
=
first_name
;
this
.
last_name
=
last_name
;
this
.
age
=
age
;
}
public
String
getId
()
{
return
id
;
}
public
String
getFirst_name
()
{
return
first_name
;
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment