Quantcast
Browsing latest articles
Browse All 19 View Live

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 latest articles
Browse All 19 View Live