0

Under which module are the 'split' functions 'list' functions etc. I cant find it under the java module

11th Aug 2018, 12:44 PM
Ryuga
Ryuga - avatar
5 Respostas
0
What do you mean by split functions? The only split function I’m aware of is the String split method, I don't understand what you mean by list functions either. Please clarify this.
11th Aug 2018, 1:03 PM
TurtleShell
TurtleShell - avatar
0
yeah the String split function
11th Aug 2018, 1:03 PM
Ryuga
Ryuga - avatar
0
list functions like append,clear
11th Aug 2018, 1:05 PM
Ryuga
Ryuga - avatar
0
The split method is part of the String class which gets imported automatically, I assume you know how it works e.g. String str = "1-2-3"; String[] strArr = str.split("-"); // {"1", "2", "3"} Offical split method documentation: https://docs.oracle.com/javase/7/docs/api/java/lang/String.html#split(java.lang.String) You can use the official Java documentation to get a list of methods of a given standard library class/interface https://docs.oracle.com/javase/8/docs/api/java/util/List.html
11th Aug 2018, 1:12 PM
TurtleShell
TurtleShell - avatar
0
thnks a lot
11th Aug 2018, 1:13 PM
Ryuga
Ryuga - avatar