-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoakjava7syntax2
260 lines (119 loc) · 3.8 KB
/
oakjava7syntax2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
OakJava7 Syntax 2
==================
Filename.java7
================
public class <classname>
{
//This constructor with super method is mandatory, which indicates it is a oakjava7 //program
// This constructor should have same name as the classname .
public <classname>()
{
super();
}
// it means it will not support any java compiler, it is entirely different.
public void main()
{
<! OAKJAVA7 Logic !>
}
}
Example:
Query3.java7
class Query3
{
public Query3()
{
super();
}
// Method declared for this Oakjava7 program to print
//the text Welcome! to EveryBody
public void displayhtmltoweb(String a)
{
//print is to print the text or html GUIS
print("\n\n");
print("<HTML><script> </script><body bgcolor=green> Welcome!</body></html>"++a);
print("\n\n");
}
// All the oakjava7 main method should have public void main() instead of
//public static void main method of java language.
public void main()
{
// call the displayhtmltoweb
displayhtmltoweb(" to EveryBody");
}
}
Note:
=====
This is simillar to Java Servlet , This topic is mentioned only at Enterprise edition. And this program generated class file is sealed as
"An Oakjava7(JAVA7.0) compiler - jemin Information technology - JIT-777-WRIT-0003 Query3.class" . So this is another type of oakjava7 program
and it is called as Oakjava7 Servlet.
JAVA7.0 SYNTAX-2 Program Structure(.java7)
Declaration Oakjava7 Section :
public class <classname>
{
//This constructor with super method is mandatory, which indicates it is a oakjava7 //program and class name and constructor name should be same
public <classname>()
{
super();
}
Documentation Section
// it means it will not support any java compiler, it is entirely different.
Package Statement;
Import Statement;
OAKJAVA7 LOGIC SECTION
// Oakjava7 main method should have public void main method otherwise oakjava7
program will not compile....
public void main()
{
<! OAKJAVA7 Logic !>
}
CLOSE OAKJAVA7 LOGIC SECTION }
LOGIC OAKJAVA7 DATASTRUCTURE SECTION
class <CLASSNAME>
{
private <CLASSNAME>()
{
super();
}
................
................
................
CLOSE LOGIC OAKJAVA7 DATASTRUCTURE SECTION }
ENDING SECTION :
Explanation:
============
All JAVA7.0 should start oakjava7 declaration section as
public class <classname>
{
//This constructor with super method is mandatory, which indicates it is a oakjava7 program.
//The class name and constructor of Oakjava7 program should be same.
public <classname>()
{
super();
}
after that OAKJAVA7 LOGIC SECTION should be
public void main()
{
<! OAKJAVA7 Logic !>
}
so <!OAKJAVA7 Logic> may have print statements, for loop,
Datastructure statements belong to another class.
But Logic Oakjava7 DataStructure Section should be in this format
class <CLASSNAME>
{
private <CLASSNAME>()
{
super();
}
and Close Logic Oakjava7 DataStructure section by using curly braces which is "}".
I hope this syntax change will be easy to follow and to do programming
in Oakjava7. I remove the complexity of the oakjava7 program syntax. So now
this type of oakjava7 servlet syntax is learnable.
Note:
=====
This Oakjava7Syntax2 is used for Oakjava7 Servlet, etc.
This syntax is easy to focus and it is learnable.
and it generates .class file which will be sealed with
"An Oakjava7(JAVA7.0) compiler - jemin Information technology - JIT-777-WRIT-0003 Query3.class" .
So this is another type of oakjava7 program and it is called as Oakjava7 Servlet.
and it has main mehtod as public void main only.
====================================================================================================================================