Quantcast
Channel: BlogoSfera » word
Browsing all 19 articles
Browse latest View live

how can I use the for loop in java to print out the word chicken in a...

Implement the printTriangle method so that it prints a triangle out of the letters in parameter str. For example, if str is Chicken then your method should print the following. C Ch Chi Chic Chick...

View Article



Python: regular expressions word match

I’ve written this small little script but I can’t get the re.search function to work properly. I’m trying to match only the exact word (joke), but the elif statement keeps returning the print because...

View Article

Extra trailing line in grok learning

So, I’ve been going through the GYM of grok learning and I encountered a strange mess up. I have my code here which prints "__" in between each letter of the word but after I print it, grok prints an...

View Article

String join issue

/* Instructions ------------ Write a LINQ query that results in all fruits that are a single word (i.e. exclude fruits like "Goji berries", as well as empty entries). Sort the results by the length of...

View Article

Group letters 2 by 2

I need some help. I need to make a program, and that program must make group of all letters in the alphabet , my ideea is the next (C++): #include <string.h> #include <iostream> int main()...

View Article


Free memory from linked list in C

I have been trying to free the allocated memory of a file loaded into a linked list, I have managed to free the nodes, but I can’t figure out how to free the allocated memory of the file’s values...

View Article

how to extact metadata for a word document in java

I have been trying to extract a .docx metaData in Java but all of my codes have failed. I have tried with apache. Please help, this was my last code. import java.util.Date; import...

View Article

Java Regex for counting syllables

I am writing a regex pattern to count all the syllables in a word but I’m having trouble ignoring the case when an “e” is alone at the end of the word. My pattern right now is: [aeiouy]+[^$e] I have...

View Article


how to store each word form a text file (just once, no duplicates) in an...

I know how to store each word form a text file in an Array List,but how can I store each word only once? I mean no duplicates. Thank you public class Analyze { public static void main(String[] args)...

View Article


Regex expression: file names that do not contain a word and matches a given...

I need a regex expression to check whether a file name matches the following pattern: report*.txt and does not contain the following string “car“. So for report_car_as.txt, rep_as, report_tds, it...

View Article

Searching for a word in a binary tree

I have to find a given word in a binary tree in some way. i have this code for a postOrder traversal: if (n.hasLeft()) { postOrder(n.left(),sb); } if (n.hasRight()) { postOrder(n.right(),sb); }...

View Article

Checking characters in a string array aren’t duplicates

So the idea is for a given set of strings in an array, I want to combine them to create one string. for example: array[0] = "abcde"; array[1] = "bcfgp"; array[2] = "fbcns"; array[3] = "fbdrq"; I want...

View Article

c#-tesseract get space recoginition in digits

I am new in tesseract and I am making a class project in which I need to scan number matrices. I have been successful in reading numbers from an image file but I haven’t found yet how to recognize...

View Article


How to make my methods work together

I’m just a beginner in Java, so I’m trying to write some simple program with graphical interface. The purpose of the program is to count gimatria value of the word that user prints. To do this user...

View Article

Build a DFA and test a word in it in Java

I need a program to build a deterministic finite automata I’ve tried to use linked-list data structure but I couldn’t know how to take the transition from the user like if the alphabet was...

View Article


Trying to count number of times a word appears in a text file

I want to count the number of times a string appears in a text file by reading it line-by-line. This is the code I have so far: FileReader reader = new FileReader(new File("src/test.txt"));...

View Article

A word and a sentence. You have used the word in that sentence ? Recursive java

İ did methods. But a couldn’t recursive. This iş my homework. Help me pls! The post A word and a sentence. You have used the word in that sentence ? Recursive java appeared first on BlogoSfera.

View Article


Get the last word of string [duplicate]

This question already has an answer here: Java: Simplest way to get last word in a string 5 answers How can I get the last word of an string if my string is like that “hello is my new car “(after the...

View Article

How to capitalize every nth word in Java?

I’m working on this java method trying to capitalize the nth word in a string(Take a single-spaced , and capitalize every word starting with ) but for some reason my variable “retVal” returns nothing....

View Article
Browsing all 19 articles
Browse latest View live




Latest Images