Created
October 17, 2015 19:04
-
-
Save edinak1/d967ff03125bbe680ff4 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
package homeWork1; | |
public class Namber { | |
public static void main(String[] args) { | |
double value=-7643546.0000004; | |
String strValue=String.valueOf(value); | |
long a=Long.valueOf(strValue.substring(0, strValue.indexOf("."))); | |
long b=Long.valueOf(strValue.substring(strValue.indexOf(".")+1)); | |
System.out.println(a); | |
System.out.println(b); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment