Created
February 17, 2016 20:41
-
-
Save ilyaBrandon/5d403801d548df4f84b6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Documents { | |
public static void main(String[] args) { | |
double value = 25.6; | |
String str = String.valueOf(value); | |
int p= str.indexOf('.'); | |
System.out.println(str.substring(0,p)); | |
System.out.println(str.substring(p+1)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment