Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
OBF-7
//Title of this code //'main' method must be in a class 'Rextester'. import java.util.*; import java.lang.*; class Rextester { public static void main(String args[]) { String url = "https://portal.xxxx.yyy/portal/intranet/" ; String hostName = url.substring(0,url.indexOf("/portal")); System.out.println("hostname ="+ hostName) ; } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Alllocate and release memory
Duplicate in string
bookstore
LRU cache - Using doubly linked list (Fast!)
Find a dot in a string
linked lists
Rextester.java
DecoratedFrame.java
jb14 L
Pattern1
Please log in to post a comment.