🌐
University of Texas
cs.utexas.edu › ~scottm › cs307 › codingSamples.htm
Java Coding Samples
Here is a sample input file. Minesweeper. Another example of recursion from the game minesweeper. GenericListVersion2. Changed the GenericList class so that it implements the Iterable interface in order to demonstrate how to implement an iterator using an inner class. GenericListVersion3. Changed GenericList so it is generic based on Java generics syntax instead of relying on Object.
🌐
JetBrains
jetbrains.com › help › idea › creating-and-running-your-first-java-application.html
Create your first Java application | IntelliJ IDEA Documentation
2 weeks ago - Click on the tool window toolbar (or press Alt+Insert) and select Java Compact File. Name the file HelloWorld and press Enter. Together with the file, IntelliJ IDEA has automatically generated a method declaration. This is done by means of file templates. Depending on the type of the file that you create, the IDE inserts initial code and formatting that is expected to be in all files of that type.
🌐
Contentstack
contentstack.com › docs › developers › sdks › content-delivery-sdk › java › java-sample-app
Sample Apps for Java | Contentstack
... To help you get started, we ... fetch entries from Contentstack. ... Create a new project under File > New > Project > Java and provide a name for your application, {applicationName}....
🌐
BeginnersBook
beginnersbook.com › 2017 › 09 › java-examples
Java Programs – Java Programming Examples with Output
console application that receives any size of matrix and one parameter which is the Manhattan distance, this is K. The result should be Yes/No. Yes if there are any two similar items (integers) in the matrix that are in a distance of K from each other or less. Input: 1. Number of rows. 2. Matrix rows one line after the other in a new line between each matrix line. 3. K value. Output YES/NO Here is a sample for an input and output:
🌐
W3Schools
w3schools.com › java › java_examples.asp
Java Examples
Java abstract classes and methods Java interface (implements) Multiple interfaces Interfaces Explained · Create an enum with a group of constants An enum inside a class An enum in a switch statement Loop through an enum Enums Explained · Read user input Read user input of various types User Input Explained · Display current date Display current time Display current date and time Formatting date and time Dates Explained
🌐
GitHub
github.com › wavefrontHQ › sample-app-java
GitHub - wavefrontHQ/sample-app-java · GitHub
January 16, 2026 - java -jar ./shopping/target/shopping-0.9.0-SNAPSHOT.jar server ./shopping/app.yaml java -jar ./styling/target/styling-0.9.0-SNAPSHOT.jar server ./styling/app.yaml java -jar ./printing/target/printing-0.9.0-SNAPSHOT.jar ./printing/app.yaml java -jar ./packaging/target/packaging-0.9.0-SNAPSHOT.jar ./packaging/app.yaml java -jar ./delivery/target/delivery-0.9.0-SNAPSHOT.jar --spring.config.location=./delivery/src/main/resources/application.yml · Now view the shopping menus using HTTP GET request: http://localhost:50050/api/shop/menu ... Optionally you can run a load generation script included in the project to generate requests using the below command from the root directory of the project.
Starred by 2 users
Forked by 35 users
Languages   Java 84.3% | JavaScript 11.2% | HTML 2.3% | CSS 2.2%
🌐
Oracle
docs.oracle.com › cd › E14507_01 › apirefs.1112 › e14133 › java001.htm
Java Source Code Example
Create a simple web source String webSourceURL = args[3]; String webSourceXML = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" + "<search:config productVersion=\"11.1.2.0.0\" xmlns:search=\"http://xmlns.oracle.com/search\">" + " <search:sources>" + " <search:webSource>" + " <search:name>web1</search:name>" + " <search:startingUrls>" + " <search:startingUrl>" + " <search:url>" + webSourceURL + "</search:url>" + " </search:startingUrl>" + " </search:startingUrls>" + " </search:webSource>" + " </search:sources>" + "</search:config>"; adminPort.createAll( "source", webSourceXML, "password", credenti
🌐
Programiz
programiz.com › java-programming › examples
Java Examples | Programiz
Build the coding confidence you need to become a developer companies will fight for · Stop copy pasting code you don't actually understand ... Become a certified Java programmer.
🌐
Gradle
docs.gradle.org › current › samples › sample_building_java_applications.html
Building Java Applications Sample
For the other questions, press enter to use the default values. ... $ gradle init Select type of build to generate: 1: Application 2: Library 3: Gradle plugin 4: Basic (build structure only) Enter selection (default: Application) [1..4] 1 Select implementation language: 1: Java 2: Kotlin 3: Groovy 4: Scala 5: C++ 6: Swift Enter selection (default: Java) [1..6] 1 Enter target Java version (min: 7, default: 21): Project name (default: demo): Select application structure: 1: Single application project 2: Application and library project Enter selection (default: Single application project) [1..2]
Find elsewhere
🌐
Oracle
docs.oracle.com › javase › tutorial › security › toolsign › step1.html
Download and Try the Sample Application (The Java™ Tutorials > Security Features in Java SE > Signing Code and Granting It Permissions)
See JDK Release Notes for information ... options for all JDK releases. This lesson uses a simple application that we provide to you. Create a file named Count.java on your local computer by either copying or downloading the Count.java source code. The examples in this lesson assume that you place count in the C:\Test directory. The count application needs to access a text file containing the data it will process. Download a sample data file, ...
🌐
IBM
ibm.com › docs › en › i › 7.4.0
Java Code examples
The following is a list of Java code examples for the IBM i.
🌐
GeeksforGeeks
geeksforgeeks.org › java › java-programming-examples
Java Programs - Java Programming Examples - GeeksforGeeks
September 25, 2025 - Looking for the Java Search related programs, hence here in this section we have listed down multiple searching Java programming examples. ... This section is all about organizing things in your Java code.
🌐
PW Skills
pwskills.com › blog › java developer › 35 basic java program examples with outputs | simple java program
35 Basic Java Program Examples With Outputs | Simple Java Program
October 30, 2025 - Java Simple Program for Beginners demonstrates the fundamental structure of a Java application, including class declaration, main() method, and basic I/O. It’s the perfect starting point to understand how Java code executes and how to write clean, error-free programs.
🌐
GitHub
github.com › buildpacks › sample-java-app
GitHub - buildpacks/sample-java-app
June 18, 2020 - Contribute to buildpacks/sample-java-app development by creating an account on GitHub.
Starred by 3 users
Forked by 529 users
Languages   HTML 55.1% | Java 44.9% | HTML 55.1% | Java 44.9%
🌐
Stratoflow
stratoflow.com › home › blog › top 7 java applications examples
Top 7 Java Applications Examples
May 23, 2025 - To make the whole software application work properly, Uber’s engineers primarily code it in Python, Node.js, Go, and Java. While everything seems simple, Uber has had to invest in both the apps for users, drivers, and the platform that connects them.
🌐
Java Code Geeks
examples.javacodegeeks.com › home
Java for Beginners, Java Programming Examples - Java Code Geeks
In a Spring Boot application, validating the Boolean type ensures data integrity and application reliability. By enforcing constraints on Boolean… Read More » ... In Java, array rotation refers to shifting the elements of an array by a specified number of positions.
🌐
Medium
medium.com › @6unpnp › an-axample-of-java-web-apps-369f98c4aa0d
An Example of Java Web Apps. Following tutorial from Pankaj and… | by Sparisoma Viridi | Medium
November 20, 2023 - Click on webapp folder, assumed to be similar to WebContent in the tutorial. ... Right click to open context menu and selec New HTML File. ... Name itindex.html and click Next button. ... Click Finish button. ... Edit the HTML content and save it. To map a servlet, the servlet details such as Servlet name and class must be provibed, e.g. consider the following code
🌐
DataCamp
datacamp.com › doc › java › first-java-program-hello-world
First Java Program: Hello World
Write the Code: Type the following code into your text editor: public class HelloWorld { public static void main(String[] args) { System.out.println("Hello, World!"); } } public class HelloWorld: This line declares a public class named HelloWorld. In Java, every application must have at least ...
🌐
Oracle
docs.oracle.com › javase › tutorial › getStarted › application › index.html
Lesson: A Closer Look at the "Hello World!" Application (The Java™ Tutorials > Getting Started)
The compiler ignores this kind of comment, just like it ignores comments that use /* and */. The javadoc tool uses doc comments when preparing automatically generated documentation. For more information on javadoc, see the Javadoc™ tool documentation . ... The compiler ignores everything from // to the end of the line. The following bold text begins the class definition block for the "Hello World!" application:
🌐
GitHub
github.com › chrishantha › sample-java-programs
GitHub - chrishantha/sample-java-programs: Sample Java programs to demonstrate performance issues · GitHub
This repository contains some sample programs. All are Maven projects and can be run directly using "java -jar" Run mvn clean install to build all sample programs
Starred by 80 users
Forked by 653 users
Languages   Java