What do you want to save?
Add Code snippet
New code examples
-
Other 2021-11-06 18:03:13
program code for counting the similarwrod in the sentences
public static int count(String word) { if (word == null || word.isEmpty()) { return 0; } int wordCount = 0; boolean isWord = false; int endOfLine = word.length() - 1; char[] characters = word.toCharArray(); for (int i... Add solution -
Java 2021-11-06 02:17:13
hadoop in mapper combiner
public static class Map extends Mapper<Object, Text, Text, IntWritable> { Map count = new HashMap<Integer, Integer>(); public void map(Object key, Text value, Context context) throws IOException, InterruptedException { StringT... Add solution -
Java 2021-11-04 14:42:21
java iterate over a string
String scientistName = "Isaac Newton"; for (int i = 0; i < scientistName.length(); i++) { System.out.print(scientistName.charAt(i) + " "); // I s a a c N e w t o n } //*******************************************************... Add solution -
Java 2021-11-04 13:05:11
bracket balancing program in java
import java.util.Scanner; import java.util.ArrayList; public class BalanceBracket { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("enter a string with '(', '{' or '['"); String s = sc.nextLin... Add solution -
Java 2021-11-03 22:59:07
java remove first character
String string = "Hello World"; //Remove first character string.substring(1); //ello World //Remove last character string.substring(0, string.length()-1); //Hello Worl //Remove first and last character string.substring(1, string.length()-1); /... Add solution -
Java 2021-10-28 19:50:11
three address code generation program in java
/* Program to implement Three Address Code in Java Author: Surajit Karmakar Author Link: https://www.facebook.com/surajit.3528 www.pracspedia.com */ import java.io.*; class ThreeAddressCode { private static final char[][] precedence = { {'/', '1'}... Add solution
Best helpers
Ranking is empty