JAVA Keywords Highlighting Puzzles IN JAVA

Ads

 
 

Share on Google+Share on Google+

CUPID
JAVA Keywords Highlighting Puzzles IN JAVA
0 Answer(s)      5 years ago
Posted in : Java Interview Questions

Syntax Highlighting

SCENERIO 1

When given a set of keywords we need to identify the occurrences of keywords in given input text and mark them with [blue] color attribute

Sample Keywords: as if and then when

Sample Input: If we write a program and compile it, then we can run the program to get output

Sample Output: [blue]If[blue] we write a program [blue]and[blue] compile it, [blue]then[blue] we can run the program to get output

SCENERIO 2

When given a set of keywords marked with different colors we need to highlight them with their respective color attribute.

Sample Keywords: as:blue if:red and:red then:green when:blue

Sample Input: If we write a program and compile it, then as we run the program, we will get output

Sample Output: [red]If[red] we write a program [red]and[red] compile it, [green]then[green] [blue]as[blue] we run the program, we will get output

SCENERIO 3

When given a set of keywords marked with various color and capitalization constrains we need to highlight them with their respective color attribute along with capitalization

Sample Keywords: as : blue : capital if : red : lower and : red : capital then : green : lower when : blue : lower

Sample Input: If we write a program and compile it, then as we run the program, we will get output

Sample Output: [red]if[red] we write a program [red]AND[red] compile it, [green]then[green] [blue]AS[blue] we run the program, we will get output

SCENERIO 4

When given a set of keywords marked with various color, capitalization and style constrains we need to highlight them with their respective constraint specific attributes

Sample Keywords: as : blue : capital : normal if : red : lower : bold and : red : capital : bold then : green : lower : normal when : blue : lower : normal

Sample Input: If we write a program and compile it, then as we run the program, we will get output

Sample Output: [red][bold]if[bold][red] we write a program [red][bold]AND[bold][red] compile it, [green]then[green] [blue]AS[blue] we run the program, we will get output

Ads
View Answers
Ads









Related Tutorials/Questions & Answers:
JAVA Keywords Highlighting Puzzles IN JAVA
JAVA Keywords Highlighting Puzzles IN JAVA  Syntax Highlighting SCENERIO 1 When given a set of keywords we need to identify the occurrences of keywords in given input text and mark them with [blue] color attribute Sample
Core java keywords
Core java keywords  How java keywords are stored in library
Advertisements
Java Keywords
Java Keywords       There are few keywords in Java programming language. Remember, we cannot use these keywords as identifiers in the program. The keywords const and goto
keywords in java - Java Interview Questions
keywords in java  hi familiars... how many keywords are there in java?   Hi Friend, Please visit the following link: http://www.roseindia.net/java/language/java-keywords.shtml Thanks
Keywords - Java Beginners
these are Keywords but i can't understand what is use and what they are plz... in an object. There is no direct equivalent in Java. Java has the final keyword..."); } } } For more information on java visit to : http://www.roseindia.net/java
Java Keywords
Java Keywords       There are few keywords in Java programming language. Remember, we cannot use these keywords as identifiers in the program. The keywords const and goto
Java Keywords
Java Keywords       There are few keywords in Java programming language. Remember, we cannot use these keywords as identifiers in the program. The keywords const and goto
java keywords - Java Interview Questions
java keywords  which one of the following keywords has highest associated active cpu usage? 1)break 2)throw 3)final 4)while 5)continue ...); } } } } -------------------------------------------------- Read for more information, http://www.roseindia.net/java
Java Programming Keywords
Java  Programming Keywords Java is rich programming language... and mobile applications. Here in this post I am listing all the 48 keywords of Java programming language. There are 48 Keywords in Java abstract boolean
[Mini-Project] Develop a programmer's editor in Java that supports syntax highlighting, compilation support, debugging support, etc.
[Mini-Project] Develop a programmer's editor in Java that supports syntax highlighting, compilation support, debugging support, etc.  Please reply me sir
where is the definition of keywords like this, int, void present in Java ? e.g the definition of methods are in API.
where is the definition of keywords like this, int, void present in Java ? e.g the definition of methods are in API.  where is the definition of keywords like this, int, void present in Java ? e.g the definition of methods
Text Editor with Syntax Highlighting
Text Editor with Syntax Highlighting   How to write a java program for text editor with syntax highlighting
Java try, catch, and finally
Java try, catch, and finally         The try, catch, and finally keywords are Java keywords... exceptions in Java is achieved through the use of the try and catch blocks. Catch
Java Keywords
Java Keywords Keyword is a reserved word in programming language which.... There are few keyword in java as follows: abstract: abstract keyword is used... . const : It is a keyword in java but not used hence it has no function
Basic Java Language Elements
Basic Java Language Elements       Java keyboards There are few keywords in Java programming language. Remember, we cannot use these keywords as identifiers
java - Java Beginners
Java keywords with examples  Java keywords with example to learn Java programming fast
Java Break keyword
and for handling these loops Java provides keywords such as break and continue respectively. Among these Java keywords break is often used in terminating the loops... Java Break keyword      
Java Basics Exercises Tutorial
that includes its definition, feature, code, keywords, etc. Definition: Java... simultaneously saving time. Java language has built-in Networking. Keywords: In Java, keywords are used in datatypes, methods, class declaration, etc. Keywords
Java Break loop
Java Break loop       Java contains its own Branching Category in which it has two keywords.... This java keyword acts as terminator for loops in computer programs, they are used
java Exception handling - Java Beginners
java Exception handling  what is the difference between throw and throws keywords
Java Tutorial
, Features of Java, keywords in Java, DataTypes in Java, conventions in Java, Java... Keywords In Java Keywords are the reserve word for doing specific task the programming language's compiler understands. Java has also keywords some
java
java  write a program that demonstrates exception handling.you are reguired to create your own exception class.make use of the keywords throws.../java/exceptions/making_custom.shtml
java
methods.If you dont want to use extend keywords you can put the method... interesting stuff on java at http://javaved.blogspot.com
Java exception handling
Java exception handling  What is the difference between throw and throws keywords
java - Development process
java  [Mini-Project] Develop a programmer's editor in Java that supports syntax highlighting, compilation support, debugging support, etc.please reply me sir
java - Development process
java  [Mini-Project] Develop a programmer's editor in Java that supports syntax highlighting, compilation support, debugging support, etc.sir please tell me
core java - Java Beginners
core java  how many keywords are in java? give with category? .../java/language/java-keywords.shtml http://www.roseindia.net/java/master-java/java-keywords.shtml Thanks
java
java  diff bt core java and java
Need to develop Java Program - Development process
Need to develop Java Program  [Mini-Project] Develop a programmer's editor in Java that supports syntax-highlighting, compilation support, debugging support, etc
java
java  what is java
java
java  write a java pgm to illustrate the keywords super,static and final   super Keyword: The keyword super is used to refer to the parent class instance of the current class. class Base{ protected int num; public Base