Source code for java

Free Java Source Code, Class Libraries, Applets, Beans and Frameworks

This page lists free Java class libraries, free Java source code, free Java applets and the like, to make your programming task easier (simply reuse code that have already been tested to do a commonly done task). Other Java pages on this site that you may be interested in include:

Looking for a Java book? One frequently recommended book on Java is Java in a Nutshell. I use the first edition of this book myself to learn Java and have found it most usable. The later editions include support for later versions of Java, as well as extended the explanations to make it easier for non-C programmers to understand the book (the first two editions targeted C programmers).

  • How to Start / Create a Website: The Beginner’s A-Z Guide
  • Free AJAX Libraries, Source Code, Frameworks, Tools and Resources
  • Free ODBC Drivers, SQL Servers and Tools, Database Libraries and Source Code
  • Free Sockets, Winsock, TCP/IP, Internet Libraries and Source Code
  • How to Register Your Own Domain Name — get one for your software
  • How to Make Money From Your Website — monetize your site
  • Budget Web Hosting

Free Java Libraries and Source Code

As is obvious from the name, this is a Java port of the GNU getopt() command line parser.

ObjectDB for Java/JDO is an Object Database Management System (ODBMS) written in Java. It is JDO compliant (Java Data Objects), allows your application to query the database using JDO Query (JDOQL), allows you to have up to 5,000 Java objects per database, uses a single file database, etc. The free edition may only be used for personal, non-commercial purposes.

To quote, «the Cyrus SASL library is a generic library for SASL authentication, as used in SMTP and IMAP protocols. It’s used for authentication by the Cyrus IMAP server as well as the Sendmail 8.10 release.» It also includes a Java SASL library. Note that the link above is to an FTP directory. Look for a file like «cyrus-sasl-1.5.20.tar.gz» (the numbers may change when newer versions are released).

This is a free replacement for Sun’s proprietary class libraries. It is still currently under development. The intention is for the released version to be fully compatibile with Java 1.1 and mostly compatible with 1.2.

Читайте также:  Reset в питоне это

OpenMap — Open Systems Mapping Technology

[Update: this software is no longer available.] OpenMap is an open source JavaBeans toolkit that allows you to «build applications and applets that access data from legacy databases and applications» (quoted from their website). Note that you should read their licence agreement before you blindly use the package, since it is not one of the standard open source licences. (At the time I looked at it, I got the impression that if you make a derivative work from their toolkit, you are also giving them the permission to make a derivative work from your program. But it’s best you read the licence agreement yourself.)
  • Tips on Choosing a Good Domain Name — get one for your software
  • How to Choose a Good Web Host
  • Free Compiler Construction Tools
  • Free Version Control Software
  • Free File and Folder Comparison (Diff/Merge) Tools
  • BlueGriffon Tutorial: How to Create a Website with the BlueGriffon Free Web Editor
  • Dreamweaver Tutorial: How to Design a Website with Dreamweaver CS6
  • Which Web Host Do You Recommend? (FAQ)

Newest Pages

  • How to Create/Make Your Own Website: The Beginner’s A-Z Guide
  • How to Register Your Own Domain Name — how to get your own domain name
  • What’s the Difference Between a Content Management System (CMS), a Blog, a Web Editor and an Online Site Builder?
  • Expression Web Tutorial: How to Design a Website with Microsoft Expression Web
  • Dreamweaver Tutorial: How to Design a Website with Dreamweaver CS6
  • How to Make a Mobile-Friendly Website: Responsive Design in CSS
  • BlueGriffon Tutorial: How to Design a Website with BlueGriffon 3
  • How to Create a Blog
  • Free CD and DVD Burners and Copying Software
  • Free Hard Disk Backup and Restore, Hard Disk Image and Cloning Utilities

It will appear on your page as:

Copyright © 1999-2018 by Christopher Heng. All rights reserved.
thesitewizard™, thefreecountry™ and HowToHaven™ are trademarks of Christopher Heng.
This page was last updated on 23 March 2018.

Источник

Free Java Guide

An assortment of programming examples covering many different topics. Many searchable collection of source code snippets illustrating specific tasks best coding practices. With our programming samples you will be able to add your own functionality to the already existing sample. All the examples are made available here for you to copy and paste into your programs.

Free Java Source Code Links

1. Core Java Programs [PAGE 1]


Core Java Programs [ PAGE 1]

Some Java programs which help lot of java beginners to understand the basic fundamentals in Java programming.

//Find Maximum of 2 nos.

public static void main(String args[])

//taking value as command line argument.

//Converting String format to Integer value

int i = Integer.parseInt(args[0]);

int j = Integer.parseInt(args[1]);

System.out.println(i+» is greater than «+j);

System.out.println(j+» is greater than «+i);

//Find Minimum of 2 nos. using conditional operator

public static void main(String args[])

//taking value as command line argument.

//Converting String format to Integer value

int i = Integer.parseInt(args[0]);

int j = Integer.parseInt(args[1]);

System.out.println(result+» is a minimum value»);

/* Write a program that will read a float type value from the keyboard and print the following output.

Читайте также:  Cannot find reference python

->Small Integer not less than the number.

->Largest Integer not greater than the number.

public static void main(String args[])

double i = 34.32; //given number

System.out.println(«Small Integer not greater than the number : «+Math.ceil(i));

System.out.println(«Given Number : «+i);

System.out.println(«Largest Integer not greater than the number : «+Math.floor(i));

/*Write a program to generate 5 Random nos. between 1 to 100, and it

should not follow with decimal point.

public static void main(String args[])

/* Write a program to display a greet message according to

Marks obtained by student.

public static void main(String args[])

int marks = Integer.parseInt(args[0]); //take marks as command line argument.

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Source Code for ‘Java 17 for Absolute Beginners’ by Iuliana Cosmina

License

Apress/java-17-for-absolute-beginners

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.adoc

This repository accompanies book Java for Absolute Beginners (https://link.springer.com/book/10.1007/978-1-4842-7080-6) by Iuliana Cosmina(Apress, 2018).

Cover image

Download the files as a zip using the green button, or clone the repository to your machine using Git.

Release v2.0 corresponds to the code in the second edition of the published book, without corrections or updates. This project was built successfully with JDK versions 17 and Maven version 3.8.2. The syntax is specific to Java versions up to and including 17. (Unstable(preview) features have not been covered in the book)

For corrections to the content in the published book, see the file Errata.adoc.

See the file Contributing.adoc for more information on how you can contribute to this repository.

This is a Maven multi-module project. Build it from scratch using:

Build it without tests using:

mvn clean install -DskipTests

The default Maven goal is set to:

This allows you to build the project and generate the site for it just by running mvn , at the root of the project.

If you want to generate and run the project site run

mvn clean install site site:stage site:run -Pdocs

This project does not require installing Apache Maven, because it was configured to be run with an Apache Maven Wrapper. All previous commands can be run with ./mvnw instead of mvn .

Читайте также:  Nginx php настройка windows

The docs maven profile excludes a few modules from generating docs, because of failures caused by non-modular dependencies and plugin incompatibilities.

If you want to build the project using a Docker container, a Dockerfile is provided to you. Just build the image using the following command (the 5th step is Maven build):

If you want to inspect the image contents, run the container image using:

docker run -it -p 9000:9000 --name java-17-bgn-build -v $:/usr/src/java-17-for-absolute-beginners java-17-bgn

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Source code for «Java: The Complete Reference, Eleventh Edition» by Herbert Schildt

gnodivad/java-the-complete-reference

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

Java: The Complete Reference, Eleventh Edition

This repo consist code example for the book.

Java: The Complete Reference, Eleventh Edition

Chapter Title Completed
01 The History and Evolution of Java
02 An Overview of Java
03 Data Types, Variables, and Arrays
04 Operators
05 Control Statements
06 Introducing Classes
07 A Close Look at Methods and Classes
08 Inheritance
09 Packages and Interfaces
10 Exception Handling
11 Multithreaded Programming
12 Enumerations, Autoboxing, and Annotations
13 Try-with-Resources, and Other Topics
14 Generics
15 Lambda Expressions
16 Modules
17 String Handling
18 Exploring java.lang
19 java.util Part 1: The Collections Framework
20 java.util Part 2: More Utility Classes
21 Input/Output: Exploring java.io
22 Exploring NIO
23 Networking
24 Event Handling
25 Introducing the AWT: Working with Windows, Graphics, and Text
26 Using AWT Controls, Layout Managers, and Menus
27 Images
28 The Concurrency Utilities
29 The Stream API
30 Regular Expressions and Other Packages
31 Introducing Swing
32 Exploring Swing
33 Introducing Swing Menus
34 Java Beans
35 Introducing Servlets

About

Source code for «Java: The Complete Reference, Eleventh Edition» by Herbert Schildt

Источник

Оцените статью