garmidon
Reaction score
363

Profile posts Latest activity Postings About

  • check out my latest player lore post, put a lot of effort into it :)
    Jean Paul Sartre ( a philosopher) says in his texts that others can’t know you for who you are as they only see an action or a behavior that they define you with. He took as example Jean Valjean when he stole a piece of bread due to extreme necessity. And from that moment everyone called him a thief when in reality he was never one. This show truth of his point of vue. He also gave the example of a person peaking from their balcony as the only thing they see are hats walking around but not people. And for that you should never let anyone define who you are cause only you can. Even if we make mistakes, it never means that we are those mistakes. Another beautiful thing that Jean Paul Sartre says is that the human is a project which means that you define who you want to be by working for it :). Judgement of others can hurt but they only see the exterior of us, so try to not pay attention to that and if you care show them who you really are and work hard to be the person you want to be :)
    (Sorry for long comment but philosophy isn’t that bad it turns out it helps with your psychology quite well)
    please name the feedback posts after finishing them so that it's easier to label them :D
    Ayo, I'm assuming a part of the reason you're learning to code now is so you can apply for Dev on FRP? Just letting it be known, if you want some help from someone i.e. helping with issues you have in coding, or someone to review your code, I'd 100% be willing to help you. Just contact me on Discord if you'd like help: Adelemphii#6213
    garmidon
    garmidon
    thnx!! :D and yes learned it to join dev team ^^
    i can't understand HashMap!! help .-.
    GodOfPie
    GodOfPie
    Code:
    import java.util.HashMap;
    import java.util.Map;
    
    public class HashMapExample {
    
        private static Map<String, Integer> playerLevels = new HashMap<>();
    
        public static void main(String[] args) {
    
            populatePlayerLevels();
            System.out.println();
            findPlayerLevelByName("Player3");
            System.out.println();
            removePlayerByName("Player4");
            System.out.println();
            overridePlayerLevel(100);
    
        }
    
        private static void populatePlayerLevels() {
            // Put players and their levels in the hashmap, for this example we'll be using this
            // EX: Player1, 1
            for(int i = 1; i < 11; i++) {
                playerLevels.put("Player" + i, i);
            }
    
            // Take every player name and their level and print it
            playerLevels.forEach((name, integer) -> {
                System.out.println(name + " is level " + integer);
            });
            System.out.println("Populate Finished");
        }
    
        private static void findPlayerLevelByName(String player) {
            // Search the hashmap for the player name, and if the hashmap contains it, return the level.
            // if it is not contained, return 0
            System.out.println(player + "'s level is: " + playerLevels.getOrDefault(player, 0));
        }
    
        private static void removePlayerByName(String player) {
            // Remove the player and its level from the map
            playerLevels.remove(player);
    
            System.out.println(player + " removed!");
    
            // Take every player name and their level and print it
            playerLevels.forEach((s, integer) -> {
                System.out.println(s + " is level " + integer);
            });
        }
    
        private static void overridePlayerLevel(Integer level) {
            // You can't have duplicate keys in a hashmap, so this method will
            // override Player3's level.
            playerLevels.put("Player3", level);
            System.out.println("Player3's level is: " + playerLevels.get("Player3"));
        }
    }
    simple hashmap example
    (edit: YIKES that's some awful syntax highlighting)
    (edit edit: removed syntax highlighting totally, that hurt my eyes)
    garmidon
    garmidon
    coolest dev ever, thanks a lot!
    garmidon
    garmidon
    this was rly hepful!
    can I put an unfinished code in dev application, a bit lazy to finish it
    garmidon
    garmidon
    alr thnx :) ill develop it even further
    Burnsalan20
    Burnsalan20
    When I applied I sent completed projects. Though as Anderssn mentioned the biggest thing is if you can do it or not and im pretty sure thats how my application was looked at.
    garmidon
    garmidon
    oh alr thnx for the info
  • Loading…
  • Loading…
  • Loading…
Top