Guest User

Untitled

a guest
Oct 15th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.23 KB | None | 0 0
  1. public String getOreName(int oreID) {
  2.         for (int counter = 0; counter < ores.length; counter++){
  3.             if(Integer.parseInt(ores[counter].toString()) == oreID){
  4.                 return ores[counter][0].toString();
  5.             }
  6.         }
  7.         return "Unknown";
  8.     }
Add Comment
Please, Sign In to add comment