Skip to content

Instantly share code, notes, and snippets.

@silavsale
Created October 25, 2016 21:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save silavsale/4a6eaa1200711b4c666bfedaf75b8382 to your computer and use it in GitHub Desktop.
Save silavsale/4a6eaa1200711b4c666bfedaf75b8382 to your computer and use it in GitHub Desktop.
TypeConvert перетворення типів даних
public class TypeConvert {
public static void main(String[] args) {
System.out.println("Значення byte Від " + Byte.MIN_VALUE + " До " +Byte.MAX_VALUE);
System.out.println("Значення short Від " + Short.MIN_VALUE + " До " + Short.MAX_VALUE);
System.out.println("Значення int Від " + Integer.MIN_VALUE + " До " + Integer.MAX_VALUE);
System.out.println("Значення long Від " + Long.MIN_VALUE + " До " + Long.MAX_VALUE);
System.out.println("---------------------------------------------------------------");
System.out.println("Значення float Від " + Float.MIN_VALUE + " До " + Float.MAX_VALUE);
System.out.println("Значення double Від " + Double.MIN_VALUE + " До " + Double.MAX_VALUE);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment