Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
OBF-7 PR
//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")); String PR_hostname = url.substring(0,url.lastIndexOf("/portal")); System.out.println("hostname ="+ hostName) ; System.out.println("Updated hostname ="+ PR_hostname) ; } }
run
|
edit
|
history
|
help
0
// Java Coding Challenge - 07: Print out Fibonacci number 0 - 1000
Klamry dla Andy'ego
Write a program to sort the odd elements descending order and even elements in ascending order
variable1
Case 2nd Clear
epeenconverter
Meena
JAVA # Günlük Maaş Hesaplama
Strotium no.
Reverse a Linked List in groups of given size k