1. El autocompletado de un IDE realiza las siguientes funciones:
Seleccione una:
a. Visualiza un listado de los comentarios en el código.
b. Ninguna respuesta es correcta.
c. Justifica (tabula) el código seleccionado.
d. ✅Visualiza un listado de sugerencias al empezar a escribir un nombre de una variable, clase u objeto entre otros.
---
This file contains hidden or 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
| # Terminal Cheat Sheet | |
| pwd # print working directory | |
| ls # list files in directory | |
| cd # change directory | |
| ~ # home directory | |
| .. # up one directory | |
| - # previous working directory | |
| help # get help | |
| -h # get help |
People
:bowtie: |
😄 :smile: |
😆 :laughing: |
|---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |
This file contains hidden or 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
| # Source: https://stackoverflow.com/a/43317244 | |
| $path = ".\aws-ec2-key.pem" | |
| # Reset to remove explict permissions | |
| icacls.exe $path /reset | |
| # Give current user explicit read-permission | |
| icacls.exe $path /GRANT:R "$($env:USERNAME):(R)" | |
| # Disable inheritance and remove inherited permissions | |
| icacls.exe $path /inheritance:r |
This file contains hidden or 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
| src/main/java/Item.java | |
| import java.util.Objects; | |
| public class Item { | |
| private String identifier; | |
| private String name; | |
| public Item(String identifier, String name) { |
This file contains hidden or 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
| src/main/java/Song.java | |
| public class Song { | |
| private String artist; | |
| private String name; | |
| private int durationInSeconds; | |
| public Song(String artist, String name, int durationInSeconds) { | |
| this.artist = artist; |
This file contains hidden or 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
| Solution for part05-Part05_01.OneMinute | |
| src/main/java/ClockHand.java | |
| public class ClockHand { | |
| private int value; | |
| private int limit; | |
| public ClockHand(int limit) { | |
| this.limit = limit; |
This file contains hidden or 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
| try (Scanner scanner = new Scanner(Paths.get("records.txt"))) { | |
| while (scanner.hasNextLine()) { | |
| String line = scanner.nextLine(); | |
| String[] parts = line.split(","); | |
| String name = parts[0]; | |
| int age = Integer.valueOf(parts[1]); | |
| System.out.println("Name: " + name); |
This file contains hidden or 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
| // we create a scanner for reading the file | |
| try (Scanner scanner = new Scanner(Paths.get("henkilot.csv"))) { | |
| // we read all the lines of the file | |
| while (scanner.hasNextLine()) { | |
| String line = scanner.nextLine(); | |
| // if the line is blank we do nothing | |
| if (line.isEmpty()) { | |
| continue; |
This file contains hidden or 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
| public static int[] addOneIntToArray(int[] initialArray , int newValue) { | |
| int[] newArray = new int[initialArray.length + 1]; | |
| for (int index = 0; index < initialArray.length; index++) { | |
| newArray[index] = initialArray[index]; | |
| } | |
| newArray[newArray.length - 1] = newValue; | |
| return newArray; | |
| } |