Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
class Example {
static void main(String[] args) {
// Example of an Integer using def
def rint = 1..10;
println(rint.contains(2));
println(rint.contains(11));
}
}
class Example {
static void main(String[] args) {
String a = "Hello World Hello";
println(a.replaceAll("Hello","Bye"));
println(a.replaceAll("World","Hello"));
}
}