Java Programming Java Code Samples



Filters


Deduplicate a string in java
harika | 11 months, 1 week
import java.util.HashMap;
public class DeduplicationOfString{
        static String dedup(String i
java string
ashokrebel007
8080 port already taken issue when trying to redeploy project from Spring Tool Suite IDE
ashokrebel007 | 6 months, 2 weeks
Open CMD with Administrator

1. Check what processes are running at available ports
If you want do this one you should open the CMD with Administrator only.
java
Permutations of a Given String
Reshma | 1 month, 2 weeks
public class Permutation { 
    public static void main(String[] args) 
    { 
java permutation
srija
While opening eclipse getting java virtual machine not found error
srija | 3 weeks, 3 days
First we have to check is java successfully installed or not check using below command
java -versio
java eclipse
Comments executed
Reshma | 1 month
public class Testing { 
    public static void main(String[] args) 
     { 
The reason for this is that the Java compiler parses the unicode character \u000d as a new line and
java comments
Tower Of Hanoi
Reshma | 1 month, 2 weeks
class Toh
{ 
    static void towerOfHanoi(int n, char from_rod, char to_rod, char aux_rod) 
java tower of hanoi
Armstrong Number in Java
Reshma | 1 month, 2 weeks
public class Armstrong 
{ 
    int power(int x, long y) 
java armstrong number
Fibonacci Series in java
Reshma | 1 month, 2 weeks
class Fibonacci { 
    static int fib(int n) 
    { 
java fibonacci
Reversing a String in Java
Reshma | 1 month, 2 weeks
import java.lang.*; 
import java.io.*; 
import java.util.*; 
java reverse string
srija
Finalize example
srija | 2 weeks, 4 days
public class FinalizeExample {
    public void finalize() {
    System.out.println("Finalize is ca
Finalize is used to perform clean up processing just before the object is garbage collected.
java
Next