Created
November 10, 2015 04:28
-
-
Save e-tverdokhleb/c7d28c9a019506939283 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 main { | |
public static void main(String[] args) { | |
double value = 25.6; | |
System.out.println((String.valueOf(value).substring(0, String.valueOf(value).indexOf("."))) +'\n' + | |
(String.valueOf(value).substring(String.valueOf(value).indexOf(".") + 1, String.valueOf(value).length()))); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment