العودة لقائمة المشاريع
مسألة في RE in java
الميزانية
$25.00 - $50.00
التصنيف
برمجة، تطوير المواقع والتطبيقات
المهارات المطلوبة
جافا
جافا
الوصف
احتاج فقط لحل مسألة خاصة عندي
متعلقة بقضية regular expression by java programming
المسألة بالتفصيل :
write a Java program that reads a content of a file and uses the regular
expression engine in Java to determine:
1. The number of words that are ended with "ing".
2. The number of lines within the file.
3. Print all numbers that are greater than 500.
4. Print all words that are preceded by a or A. e.g. a car, A girl
Example
Suppose I create a file with the following content:
This generational and chronological list of Intel processors attempts to present all of
Intel's processors from the pioneering 4-bit 4004(1971) to the present high-end offerings,
which include the 64-bit Itanium 2 (2002), Intel Core i7, and Xeon E3 and E5 series
processors (2015). Concise technical data are given for each product.
The tool would read the created file and produce the following output:
The number of words that are ended by "ing": 2
The number of lines: 1
The numbers that are greater than 500: 4004 1971 2002 2015
No words preceded by a or A