Skip to content

Update MyServlet.java #1

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all 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
18 changes: 12 additions & 6 deletions Java Servlet Tutorial/MyServlet.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,18 @@
public class MyServlet extends HttpServlet {
private static final long serialVersionUID = 1L;
private String[] jokes = {
"Why do Java developers wear glasses? Because they don't C#!",
"I told my computer I needed a break, and now it won't stop sending me Kit Kat bars.",
"Why don't programmers like nature? It has too many bugs.",
"How many programmers does it take to change a light bulb? None, it's a hardware problem.",
// Add more jokes here
};
"Why do Java developers wear glasses? Because they don't C#!",
"I told my computer I needed a break, and now it won't stop sending me Kit Kat bars.",
"Why don't programmers like nature? It has too many bugs.",
"How many programmers does it take to change a light bulb? None, it's a hardware problem.",
"Why do programmers prefer dark mode? Because light attracts bugs.",
"What's a Java developer's favorite bean? The CoffeeBean!",
"Why was the Java developer sad? Because they didn't get a byte!",
"Why did the programmer quit their job? Because they didn't get arrays.",
"What do you call a programmer from Finland? Nerdic.",
"Why did the computer go to therapy? It had a hard drive."
};


/**
* @see HttpServlet#HttpServlet()
Expand Down