ASDV-WebDev/Semester 2/Assignments/lab6-f23_CalebFontenot/Printed HTMLs/Author.html

75 lines
3.4 KiB
HTML
Raw Normal View History

2023-09-27 13:31:02 -05:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Author.java</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<style type="text/css">
<!--
body {color: #a9b7c6; background-color: #2b2b2b; font-family: monospace}
pre {color: #a9b7c6; background-color: #2b2b2b; font-family: monospace}
table {color: #888888; background-color: #313335; font-family: monospace}
.ST2 {color: #9876aa}
.ST3 {color: #ffc66d}
.comment {color: #808080}
.whitespace {color: #505050}
.ST1 {color: #808080; font-family: monospace; font-weight: bold}
.ST0 {color: #287bde}
.literal {color: #cc7832}
-->
</style>
</head>
<body>
<table width="100%"><tr><td align="center">/home/caleb/ASDV-WebDev/Semester 2/Assignments/lab6-f23_CalebFontenot/src/main/java/edu/slcc/asdv/pojos/Author.java</td></tr></table>
<pre>
<span class="comment">/*</span>
<span class="comment"> * Click </span><span class="ST0">nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt</span><span class="comment"> to change this license</span>
<span class="comment"> * Click </span><span class="ST0">nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java</span><span class="comment"> to edit this template</span>
<span class="comment"> */</span>
<span class="literal">package</span> edu.slcc.asdv.pojos;
<span class="comment">/**</span>
<span class="comment"> *</span>
<span class="comment"> * </span><span class="ST1">@author</span> <span class="comment">caleb</span>
<span class="comment">*/</span>
<span class="literal">public</span> <span class="literal">class</span> Author <span class="literal">implements</span> java.io.Serializable {
<span class="literal">private</span> String <span class="ST2">first</span> = <span class="literal">null</span>;
<span class="literal">public</span> Author(String first, String last, String bio) {
<span class="literal">this</span>.<span class="ST2">first</span> = first;
<span class="literal">this</span>.<span class="ST2">last</span> = last;
<span class="literal">this</span>.<span class="ST2">bio</span> = bio;
}
<span class="literal">public</span> String <span class="ST3">getFirst</span>() {
<span class="literal">return</span> <span class="ST2">first</span>;
}
<span class="literal">public</span> <span class="literal">void</span> <span class="ST3">setFirst</span>(String first) {
<span class="literal">this</span>.<span class="ST2">first</span> = first;
}
<span class="literal">private</span> String <span class="ST2">last</span> = <span class="literal">null</span>;
<span class="literal">public</span> String <span class="ST3">getLast</span>() {
<span class="literal">return</span> <span class="ST2">last</span>;
}
<span class="literal">public</span> <span class="literal">void</span> <span class="ST3">setLast</span>(String last) {
<span class="literal">this</span>.<span class="ST2">last</span> = last;
}
<span class="literal">private</span> String <span class="ST2">bio</span> = <span class="literal">null</span>;
<span class="literal">public</span> String <span class="ST3">getBio</span>() {
<span class="literal">return</span> <span class="ST2">bio</span>;
}
<span class="literal">public</span> <span class="literal">void</span> <span class="ST3">setBio</span>(String bio) {
<span class="literal">this</span>.<span class="ST2">bio</span> = bio;
}
}
</pre></body>
</html>