Comment on Tutorial - Using StringTokenizer in Java By Emiley J



Comment Added by : lucky

Comment Added at : 2011-05-06 23:01:43

Comment on Tutorial : Using StringTokenizer in Java By Emiley J
Create a lexical analyzer of the C- programming language using Java program. The following statements available in C- are as follows:

Variable Declarations:
1. Variable must start with a letter and can be followed by a number.
2. Special characters are invalid variable name.
3. Variable must be declared before the corresponding data type.
Data types:
int char
float double
Sample variable declarations:
int A, B, C1.
Operators:
Mathematical Operators
1. Addition (+)
2. Subtraction (-)
3. Multiplication (X)
4. Division (/)
Logical Operators
1. Not (!)
2. AND (&)
3. OR (| )
Relational Operators
1. Greater than (>)
2. Less than (<)
3. Equal (==)
4. Less than equal (<=)
5. Greater than equal (>=)
6. Not equal (!>)
Assignment operator (:)
RESERVED WORDS
PRINT
INPUT
START
END
IF
ELSE
FOR
WHILE
DO WHILE
NOTE: All statements are terminated by period!


View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. Hi all this program is working very fine .... i ha
View Tutorial          By: Ashish at 2009-03-25 04:28:25

2. thank for this script
because i will work

View Tutorial          By: r at 2009-06-27 05:07:31

3. I have been trying to learn ASP.net for a week and
View Tutorial          By: eric at 2010-08-06 15:43:49

4. Well done. I am a mobile application developer. I'
View Tutorial          By: Wendi-tan at 2008-09-03 18:45:41

5. In the above program, the instance variables like
View Tutorial          By: Abhikumar.M at 2012-08-02 17:25:55

6. farhaan, thats why I said, "Using the HTML Bu
View Tutorial          By: Charles at 2008-03-21 01:36:46

7. Yes, you can use the newer one as follows

View Tutorial          By: John at 2012-08-11 01:40:46

8. more daitlled coding for me
View Tutorial          By: fred at 2008-07-15 05:56:49

9. Good example for vector
View Tutorial          By: mangai at 2011-07-07 09:46:10

10. Hi Maybelline, This is the <a href="http:/
View Tutorial          By: Daniel Malcolm at 2008-08-21 06:57:31