Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
String Class Methods
//'main' method must be in a class 'Rextester'. //openjdk version '11.0.5' import java.util.*; import java.lang.*; class Rextester { public static void main(String args[]) { String n= "JavaLecture"; String m="JavaClass"; char c = n.charAt(4); System.out.println(c); int l= n.length(); System.out.println(l); System.out.println(n.substring(2,4)); System.out.println(n.substring(2)); System.out.println(n.contains("Java")); System.out.println(n.contains("Hello")); System.out.println(n.equals(m)); System.out.println(n.isEmpty()); } }
run
|
edit
|
history
|
help
0
1(E)
JAVA # Cümleye Boşluk Bırakma 2
kkk
detect cycle in singly linked list
Minimum Vertices to Traverse Directed Graph
LRU cache - Simple solution (costly)
getListVehicules
ekse
Alphabets
Word pattern