مطالب پایین نحوه استافده از JShell در jdk9 را نشان میدهد به صورتی که میتونید کد های جاوارو در یه فایل متنی بنویسید و با استفاده از JShell اجرا کنید.
@jDevelope
@jDevelope
By now, most of you might have heard about JDK9 JShell. If you are not aware of it, please click here. In this article, I am going to use JShell to show you how to execute Java code like Unix noscript.
Let me show you an example first and then go into details:
Open a file and save it with .txt by naming it as java_shell_code.txt
Write some Java code and execute the below command by passing the file name as an argument. You don't need to declare a class. Just write statements or create methods and enjoy functional programming.
java ex.jshell.extension.JShellScriptExecutor ./java_shell_code.txt
@jDevelope
Let me show you an example first and then go into details:
Open a file and save it with .txt by naming it as java_shell_code.txt
Write some Java code and execute the below command by passing the file name as an argument. You don't need to declare a class. Just write statements or create methods and enjoy functional programming.
java ex.jshell.extension.JShellScriptExecutor ./java_shell_code.txt
@jDevelope
// java_shell_code.txt contents.
/* If you observe it does not need a class declaration.
Using the power of jshell,
we can write functions and call functions with out creating class,
just like functional programming */
// You can also include comments like above, anywhere in the noscript
String var1 = "Hello";
System.out.println(var1);
public int getInt1(){
return 2;
}
public int getInt2(){
return 4;
}
getInt1() + getInt2();
public class MyClass{
public void sayHelloWorld(){
System.out.println("HelloWorld");
}
}
new MyClass().sayHelloWorld()
@jDevelope
/* If you observe it does not need a class declaration.
Using the power of jshell,
we can write functions and call functions with out creating class,
just like functional programming */
// You can also include comments like above, anywhere in the noscript
String var1 = "Hello";
System.out.println(var1);
public int getInt1(){
return 2;
}
public int getInt2(){
return 4;
}
getInt1() + getInt2();
public class MyClass{
public void sayHelloWorld(){
System.out.println("HelloWorld");
}
}
new MyClass().sayHelloWorld()
@jDevelope
This media is not supported in your browser
VIEW IN TELEGRAM
Java : Writing bad
@jDevelope
@jDevelope
Forwarded from همفکر ارومیه | Hamfekr Urmia
animation.gif
124.4 KB
باید یاد بگیریم که دو حالت بیشتر وجود نداره:
۱. یا با همدیگه پیشرفت میکنیم
۲. یا بصورت انفرادی میپوسیم!
انتخاب هم دست خودمونه
پ.ن: هوا وقتی قشنگ میشه که همه ابرها با هم ببارن
۱. یا با همدیگه پیشرفت میکنیم
۲. یا بصورت انفرادی میپوسیم!
انتخاب هم دست خودمونه
پ.ن: هوا وقتی قشنگ میشه که همه ابرها با هم ببارن
http://jspwiki.apache.org
ابزاری برای داکیومنتیشن (مستند سازی ) ویا ویکی بر پایه jsp
با توجه به اینکه نمیشه هر کاریو به خاطر سپرد باید یه جایی یادداشت کرد اینم یکی از ابزار هایی هست که بر پایه وبه
Apache JSPWiki is a leading open source WikiWiki engine, feature-rich and built around standard JEE components (Java, servlets, JSP).
ابزاری برای داکیومنتیشن (مستند سازی ) ویا ویکی بر پایه jsp
با توجه به اینکه نمیشه هر کاریو به خاطر سپرد باید یه جایی یادداشت کرد اینم یکی از ابزار هایی هست که بر پایه وبه
Apache JSPWiki is a leading open source WikiWiki engine, feature-rich and built around standard JEE components (Java, servlets, JSP).
Forwarded from DLeX: AI Python
دیباگ کردن مانند کارگاه بودن در فیلمی جنایی است که قاتل آن هم خودتان باشید!
Filipe Fortes
🆔 @ai_python
Filipe Fortes
🆔 @ai_python
Forwarded from Deleted Account
K. Siva Prasad Reddy PrimeFaces Beginners Guide.pdf
3.7 MB
Forwarded from Deleted Account
Mert Caliskan, Oleg Varaksin PrimeFaces Cookbook.pdf
6.7 MB
Forwarded from Deleted Account
Sudheer_Jonna_Learning_PrimeFaces.pdf
2.2 MB