๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ java โ€บ java-programming-examples
Java Programs - Java Programming Examples - GeeksforGeeks
September 2, 2026 - This section contains Java programs for working with collections such as lists, sets, queues, and maps.
๐ŸŒ
GitHub
github.com โ€บ ishanjogalekar โ€บ Java-Programs
GitHub - ishanjogalekar/Java-Programs: Different Java Codes ยท GitHub
->Multiplication in 2 linked lists ยท Java Program to add two integers but take integers input as String.Convert String to int (without type conversion) and add integers.
๐ŸŒ
W3Schools
w3schools.com โ€บ java โ€บ java_syntax.asp
Java Syntax
Every line of code that runs in Java must be inside a class. The class name should always start with an uppercase first letter.
๐ŸŒ
Programiz
programiz.com โ€บ java-programming โ€บ examples
Java Examples | Programiz
This page contains examples of basic concepts of Java programming like loops, functions, native datatypes and so on.
๐ŸŒ
Princeton CS
introcs.cs.princeton.edu โ€บ java โ€บ 11cheatsheet
Java Programming Cheatsheet
Typical array-processing code. Inline initialization. The full StdOut API. The full StdIn API. The full StdArrayIO API. The full StdDraw API. The full StdAudio API. The full StdPicture API. The full StdRandom API. The full StdStats API. The full java.lang.String API. The full java.awt.Color API. The full Picture API. The full In API. The full Out API. The full Stack API. The full Queue API. The full ST API. The full SET API. The full Graph API. Here's a list of errors compiled by Mordechai Ben-Ari.
๐ŸŒ
Learn Java
javatutoring.com โ€บ java-programs
Java Programs โ€“ 500+ Simple & Basic Programs With Outputs
August 25, 2026 - Java programs: Basic Java programs with examples & outputs. Here we covered over the list of 500+ Java simple programs for beginners to advance, practice & understood how java programming works. You can take a pdf of each program along with source codes & outputs.
๐ŸŒ
W3Schools
w3schools.com โ€บ java โ€บ java_examples.asp
Java Examples
Browse Java examples for every topic - syntax, variables, data types, loops, classes, and more.
๐ŸŒ
Alibaba Cloud Community
alibabacloud.com โ€บ blog โ€บ 50-efficient-code-samples-for-java-programming_596122
50 Efficient Code Samples for Java Programming - Alibaba Cloud Community
April 14, 2020 - Use iteration to traverse random-access and non-random-access lists. In Java collection libraries, the time complexity of the contains method for List is typically O(n), whereas the time complexity of HashSet is O(1).
๐ŸŒ
IncludeHelp
includehelp.com โ€บ java-language-solved-programs.aspx
Java Programs, Java Programming Examples, Java Source Codes, Java Solved Programs - IncludeHelp
Java Array programs39 Java ArrayList programs11 Java swing programs04 Java applet programs03 Java list programs07 Java conversion programs13 Java file and directory programs06 Java Number System Conversion programs03 Java LinkedList Programs32 Java Stack Programs13 Java Queue Interface Programs12 Java HashSet Programs23 Java Exception Handling Programs20 Java Math Class Programs25 Java Vector Class Programs39 Java EnumSet Programs18 Java TreeSet Programs24 Java StringJoiner Class Programs05 Java HashMap Programs08 Java Regular Expressions Programs07
Find elsewhere
๐ŸŒ
PREP INSTA
prepinsta.com โ€บ home โ€บ top 100 codes
Top 100 Codes ยป PREP INSTA
September 21, 2026 - PrepInsta Top 100 Codes Below You will find some of the most important codes in languages like C, C++ and Java. These codes are of prime importance for college semester exams and also for various online tests and interviews of the companies offering placements within varying range in LPA.
๐ŸŒ
w3resource
w3resource.com โ€บ java-exercises
Java programming Exercises, Practice, Solution - w3resource
This resource offers a total of 5356 Java Programming problems for practice.
๐ŸŒ
Tpoint Tech
tpointtech.com โ€บ java-programs
Java Programs | Java Programming Examples - Tpoint Tech
February 10, 2026 - Basic Java programs like Fibonacci series, prime number, factorial, and palindrome are among the most commonly asked. All the Java programs are explained with appropriate examples and outputs. Beginners are advised to study the Java tutorial before practicing these programs.
๐ŸŒ
Reddit
reddit.com โ€บ r/learnprogramming โ€บ best list of java commands/methods/symbols for beginner?
r/learnprogramming on Reddit: Best list of java commands/methods/symbols for beginner?
September 9, 2015 -

Just learning and am watching two different video tutorials on java. Is therre a list of commands/symbols that would allow me to play around when I am not following these courses/lessons? Only real "command" I know is the system.print one and a few others.

๐ŸŒ
Tutorial Gateway
tutorialgateway.org โ€บ learn-java-programs
Java Program Examples
July 21, 2026 - Learn Java Programs with examples: Basic Java Programs, Number, string, conversion, array, matrix, pointers, strings, alphabets, star pattern
Top answer
1 of 5
54

This is your list:

Use with AI3 -- Cancel
8 -- Backspace
9 -- Tab
10 -- Enter
12 -- Clear
16 -- Shift
17 -- Ctrl
18 -- Alt
19 -- Pause
20 -- Caps Lock
21 -- Kana
24 -- Final
25 -- Kanji
27 -- Escape
28 -- Convert
29 -- No Convert
30 -- Accept
31 -- Mode Change
32 -- Space
33 -- Page Up
34 -- Page Down
35 -- End
36 -- Home
37 -- Left
38 -- Up
39 -- Right
40 -- Down
44 -- Comma
45 -- Minus
46 -- Period
47 -- Slash
48 -- 0
49 -- 1
50 -- 2
51 -- 3
52 -- 4
53 -- 5
54 -- 6
55 -- 7
56 -- 8
57 -- 9
59 -- Semicolon
61 -- Equals
65 -- A
66 -- B
67 -- C
68 -- D
69 -- E
70 -- F
71 -- G
72 -- H
73 -- I
74 -- J
75 -- K
76 -- L
77 -- M
78 -- N
79 -- O
80 -- P
81 -- Q
82 -- R
83 -- S
84 -- T
85 -- U
86 -- V
87 -- W
88 -- X
89 -- Y
90 -- Z
91 -- Open Bracket
92 -- Back Slash
93 -- Close Bracket
96 -- NumPad-0
97 -- NumPad-1
98 -- NumPad-2
99 -- NumPad-3
100 -- NumPad-4
101 -- NumPad-5
102 -- NumPad-6
103 -- NumPad-7
104 -- NumPad-8
105 -- NumPad-9
106 -- NumPad *
107 -- NumPad +
108 -- NumPad ,
109 -- NumPad -
110 -- NumPad .
111 -- NumPad /
112 -- F1
113 -- F2
114 -- F3
115 -- F4
116 -- F5
117 -- F6
118 -- F7
119 -- F8
120 -- F9
121 -- F10
122 -- F11
123 -- F12
127 -- Delete
128 -- Dead Grave
129 -- Dead Acute
130 -- Dead Circumflex
131 -- Dead Tilde
132 -- Dead Macron
133 -- Dead Breve
134 -- Dead Above Dot
135 -- Dead Diaeresis
136 -- Dead Above Ring
137 -- Dead Double Acute
138 -- Dead Caron
139 -- Dead Cedilla
140 -- Dead Ogonek
141 -- Dead Iota
142 -- Dead Voiced Sound
143 -- Dead Semivoiced Sound
144 -- Num Lock
145 -- Scroll Lock
150 -- Ampersand
151 -- Asterisk
152 -- Double Quote
153 -- Less
154 -- Print Screen
155 -- Insert
156 -- Help
157 -- Meta
160 -- Greater
161 -- Left Brace
162 -- Right Brace
192 -- Back Quote
222 -- Quote
224 -- Up
225 -- Down
226 -- Left
227 -- Right
240 -- Alphanumeric
241 -- Katakana
242 -- Hiragana
243 -- Full-Width
244 -- Half-Width
245 -- Roman Characters
256 -- All Candidates
257 -- Previous Candidate
258 -- Code Input
259 -- Japanese Katakana
260 -- Japanese Hiragana
261 -- Japanese Roman
262 -- Kana Lock
263 -- Input Method On/Off
512 -- At
513 -- Colon
514 -- Circumflex
515 -- Dollar
516 -- Euro
517 -- Exclamation Mark
518 -- Inverted Exclamation Mark
519 -- Left Parenthesis
520 -- Number Sign
521 -- Plus
522 -- Right Parenthesis
523 -- Underscore
524 -- Windows
525 -- Context Menu
61440 -- F13
61441 -- F14
61442 -- F15
61443 -- F16
61444 -- F17
61445 -- F18
61446 -- F19
61447 -- F20
61448 -- F21
61449 -- F22
61450 -- F23
61451 -- F24
65312 -- Compose
65368 -- Begin
65406 -- Alt Graph
65480 -- Stop
65481 -- Again
65482 -- Props
65483 -- Undo
65485 -- Copy
65487 -- Paste
65488 -- Find
65489 -- Cut

I generated it with this plain bruteforce:

Use with AIimport java.awt.event.KeyEvent;                                                               
import java.lang.reflect.Field;                                                               
import java.lang.reflect.Modifier;                                                            
import java.util.*;                                                                           
                                                                                              
public class Test {                                                                           
    public static void main(String[] a) {                                                     
        for(int i = 0; i < 1000000; ++i) {                                                    
            String text = java.awt.event.KeyEvent.getKeyText(i);                              
            if(!text.contains("Unknown keyCode: ")) {                                         
                System.out.println("" + i + " -- " + text);                                   
            }                                                                                 
        }                                                                                     
                                                                                              
    }                                                                                         
}

I have excluded the "unknown" codes.

2 of 5
19

KeyEvent class has static fields with these values.

For example, KeyEvent.VK_A represent "A" key.

To get the fields names you can use reflection:

Use with AIField[] fields = java.awt.event.KeyEvent.class.getDeclaredFields();
for (Field f : fields) {
    if (Modifier.isStatic(f.getModifiers())) {
        System.out.println(f.getName());
    } 
}
๐ŸŒ
Edureka
edureka.co โ€บ blog โ€บ java-programs
Best Java Programs for Practice: Beginners and Experienced
February 13, 2025 - When you run the code, it will check whether the given string is a palindrome or not as shown below: Enter your Statement: RACECAR RACECAR is palindrome = true Enter your Statement: EDUREKA EDUREKA is palindrome = false ยท It is the different arrangements of a given number of elements taken one by one, or some, or all at a time. Letโ€™s have a look at its implementation. package Edureka; import java.util.Scanner; public class nprandncr { //calculating a factorial of a number public static int fact(int num) { int fact=1, i; for(i=1; i<=num; i++) { fact = fact*i; } return fact; } public static v
๐ŸŒ
CodeScracker
codescracker.com โ€บ java โ€บ program โ€บ java-programming-examples.htm
Java Programming Examples
Java Programming Examples with Output: I've written around 500 Java codes here, separated into more than 100 Java program articles.
๐ŸŒ
BeginnersBook
beginnersbook.com โ€บ 2017 โ€บ 09 โ€บ java-examples
Java Programs โ€“ Java Programming Examples with Output
To understand a programming language you must practice the programs, this way you can learn any programming language faster. This page includes java programs on various java topics such as control statements, loops, classes & objects, functions, arrays etc. All the programs are tested and provided with the output.
๐ŸŒ
University of Texas
cs.utexas.edu โ€บ ~scottm โ€บ cs307 โ€บ codingSamples.htm
Java Coding Samples
A simple list interface ยท LinkedList. Similar to the LinkedList developed in class. Does not contain all the methods you would expect of a LinkedList. Also implements the iterator remove method in O(N) time. An O(1) time remove method is possible. UnsortedHashSet - An unsorted set that uses a hashtable with closed address hashing to store values. Currently only the add method is implemented. UnsortedSetTest - A method to compare Java's TreeSet and HashSet to the BianrySearchTree, UnsortedSet, and UnsortedHashSet classes developed in class.