2. Now implement the other bottom method generateCharacters. The method takes as input (param- eters) the staring and ending numbers of a sequence of contiguous Unicode-characters we want to generate. The method concatenates all the characters into a String and returns the String. public static String generateChars(int ch1, int ch2) { String chars = ""; for ( int i = ch1; i < ch2; ++i) chars += (char) 30 31 E 32 33 %3D 34 35 return chars; } 36 37 3. Inside main(), comment out the call to method menu() and test the method generateChars by call- ing as follows: String s = generateChars( 65 , 65+26); System.out.printIn( s ); Test the method for Greek and Cyrillic. Note that the Cyrillic alphabet starts at 410 in hex, and has 32 characters. Note that the Greek Alphabet starts at 391 in hex, and has 24 characters. However, use +25 instead of +24, as one of the characters in the sequence is not a Greek letter.
2. Now implement the other bottom method generateCharacters. The method takes as input (param- eters) the staring and ending numbers of a sequence of contiguous Unicode-characters we want to generate. The method concatenates all the characters into a String and returns the String. public static String generateChars(int ch1, int ch2) { String chars = ""; for ( int i = ch1; i < ch2; ++i) chars += (char) 30 31 E 32 33 %3D 34 35 return chars; } 36 37 3. Inside main(), comment out the call to method menu() and test the method generateChars by call- ing as follows: String s = generateChars( 65 , 65+26); System.out.printIn( s ); Test the method for Greek and Cyrillic. Note that the Cyrillic alphabet starts at 410 in hex, and has 32 characters. Note that the Greek Alphabet starts at 391 in hex, and has 24 characters. However, use +25 instead of +24, as one of the characters in the sequence is not a Greek letter.
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Java Netbeans
Expert Solution
Basic
Call the generate char function from the main method to get results.
Solution below.
Step by step
Solved in 2 steps with 2 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education