Skip to content

Category Archives: Java Programs

Prerequisites: Generics in Java LinkedList in Java What is Stack? Stack is a linear Data Structure that follows LIFO(Last In First Out) order while performing… Read More
Pinball is a classic arcade game that has been around since the 1930s. It involves the player using flippers to hit a ball around a… Read More
Given two integers num1 and num2, the task is to find the sum of the given two numbers. Examples: Input: A = 5, B =… Read More
Graph arboricity measures edge density. It is the fewest trees that can cover all graph edges. It covers all graph edges with the fewest edge-disjoint… Read More
The number which is equal to the sum of its divisors is called a perfect number. Read the entered long number, assigned to the long… Read More
Computational geometry to triangulate a set of points in a plane or in higher dimensions is not an easy task but we can perform this… Read More
The set packing problem is a type of combinatorial optimization problem that involves selecting a subset of sets from a given collection of sets such… Read More
Polygons are basic shapes in geometry and can have many sides. Finding the Area of a Polygon is a complex task, So to perform this… Read More
Star, number, and character patterns are the most asked Java Pattern Programs in interviews to check your logical and coding skills. Pattern programs in Java… Read More
To write a List<String> to a text file after deleting a specific string, you can use the following steps: Iterate through the List<String> and use… Read More
An applet is a Java program that can be embedded into a web page. Applets are small Java applications that can be accessed on an… Read More
Given some Strings as Email addresses, the task is to extract the domain name from it Examples: Input: test_str = ‘team@geeksforgeeks.org’ Output: geeksforgeeks.org Explanation: Domain… Read More
Prerequisites:  Regular Expressions IP address Given a string str, the task is to extract all the  IP addresses from the given string. Let us see… Read More
Problem statement: Given an initial point x_0 and a function f(x), we want to find the local optima of the function using the conjugate method.… Read More
Bandwidth reduction on graphs refers to techniques used to reduce the amount of data that needs to be transmitted or stored in order to represent… Read More