Advertisement
Dakpluto

example

Mar 14th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.58 KB | None | 0 0
  1.         if(total >=0L && total <= 8589934584L) {
  2.             System.out.println("Error on RAM chip 0 at bit " + total);
  3.         } else if (total <= 17179869184L) {
  4.             System.out.println("Error on RAM chip 1 at bit " + total);
  5.         } else if (total <= 25769803768L) {
  6.             System.out.println("Error on RAM chip 2 at bit " + total);
  7.         } else if (total <= 34359738368L) {
  8.             System.out.println("Error on RAM chip 3 at bit " + total);
  9.         } else {
  10.             System.out.println("Error at bit " + total + " is out of bounds of memory chips.");
  11.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement