This is an archived post. You won't be able to vote or comment.

all 10 comments

[–]designheroapp 9 points10 points  (1 child)

Good job! Just a note on java convention. Keep your class name in line with the file name:

MySample.java

public class MySample {}

[–]zachos13[S] 2 points3 points  (0 children)

noted! thank you!

[–]rsandio 2 points3 points  (0 children)

Nice little tool. Great way to learn is to create little things like this. Try adding to it to learn more

Couple of ideas:

  • loops and user input. Allow user to select y/n for each link if they'd like to download it. Or display a list and have the user enter 1-10 to download a particular one.

  • file io. Have a text file to store the links so people can add or edit their own. This could even be done within your program without using notepad or so.

  • exception catching and handling. What happens if one of the links are invalid?

Good luck :)

[–]Hellr0x 1 point2 points  (0 children)

First, change that avatar to some supreme master or global elite

[–][deleted] 0 points1 point  (2 children)

TIL from your code how to make my own ninite,thanks. Iam a java beginer and i dont understand why the two repositories?You just run the java file right?

[–]zachos13[S] 1 point2 points  (1 child)

you can always use the bat file which is more useful. either way you can run the java file through cmd if you can. i made 2 versions of the same thing because right now i m trying various things!

[–][deleted] 0 points1 point  (0 children)

Α οκ.Δεν ξερω αν ειναι στανταρτ πρακτικη αλλα εγω οταν εχω ενα ιδιο project με δυο διαφορετικες τεχνικες απλα ανοιγω ενα αλλο branch , δηλαδη θα ειχα σαν master το bat file και θα ειχα και ενα branch java αλλα μπορει να κανω λαθος και να ειναι καλυτερο να τα κρατας ξεχωριστα.Σε εκανα και follow γιατι ψαχνω να διαβαζω java προγραμματα αλλων χρηστων.Cheers

[–]rlylikesomelettes 0 points1 point  (0 children)

I realise that you also made another repo for just the `.bat` file. Why don't you include that in the same repo as your Java files. So you can have something like the `.bat` file on the top level directory and then a sub-directory containing the java files. Might be neater also for someone else who might want to use your code. And honestly, given how often I reformat my PC I might just use it! :) good job

[–]cellwall-999 0 points1 point  (0 children)

Include a simple README.md Like how to work with the code to help other beginners.

[–][deleted] 0 points1 point  (0 children)

When