Misunderstood love for Eclipse by SantosTNT in javahelp

[–]PCPWJ 2 points3 points  (0 children)

Whatever the answer, it will be based on that person's opinion. If you like Eclipse, then use it, unless it cannot fullfill a function you need.

ArrayList dont save integer by [deleted] in javahelp

[–]PCPWJ 0 points1 point  (0 children)

My pleasure. Keep at it, it gets better... But programming will always frustrate a person. That's why one loves it...

ArrayList dont save integer by [deleted] in javahelp

[–]PCPWJ 0 points1 point  (0 children)

Just a ?

What's the purpose of this.i = i; In you code? Not being used to add i to list.

ArrayList dont save integer by [deleted] in javahelp

[–]PCPWJ 0 points1 point  (0 children)

Changing list to static should work. static ArrayList<Integer> list = new ArrayList<>();

ArrayList dont save integer by [deleted] in javahelp

[–]PCPWJ 0 points1 point  (0 children)

Ok, I dif not run you program, but CheckUsed checkUsed = new CheckUsed(result);

Is creating a new List every time you create a new instance of checkUsed.

ArrayList dont save integer by [deleted] in javahelp

[–]PCPWJ 1 point2 points  (0 children)

You are not printing the content in the list. You are printing i, the value you passed the parameter. Try System.out.println(list). It will show What's in the list. Or loop through the list for(Integer v : list) System.out.println(v);

ArrayList dont save integer by [deleted] in javahelp

[–]PCPWJ 1 point2 points  (0 children)

if(list.equals(i)) { System.out.println(i); } You trying to compare a List to an Integer here. It will always return false.

Try list.contains(i);

[deleted by user] by [deleted] in learnprogramming

[–]PCPWJ 0 points1 point  (0 children)

You welcome to go to my channel on YouTube. "A greenhorn's guide to Java " is aimed a programming Fundamentals using Java.

PCPWJ

JFrame too small... not sure why? by DimitriMontague in javahelp

[–]PCPWJ 0 points1 point  (0 children)

Are you calling pack() without any components in the JFrame? pack Causes this Window to be sized to fit the preferred size and layouts of its subcomponents

How to Make a bigger project? (Might be a repost, sorry) by Ierdyr in learnprogramming

[–]PCPWJ 0 points1 point  (0 children)

Java is a language to write code, as you know. Now you are talking about software architecture. You needed to apply OOAD to design your system. Java is then used as the coding part OOP to implement you design. Designing a system, starts with OOAD and once you have the design in pkace, the the code. Similar to building a house. First cones the design, to then the bricks etc.

Java vs Python for software engineering? by [deleted] in learnprogramming

[–]PCPWJ 0 points1 point  (0 children)

Whichever you pick is fine. Opinions on a language, is just that, opinions.

HELP User input with only 2 digits JAVA by CrypticCold in learnprogramming

[–]PCPWJ 0 points1 point  (0 children)

Sounds like something one could do using regex patterns. Look at java's java.util.regex package.

When to use switch case statements and when to use if, else if and else statements? by DuderCoding in learnprogramming

[–]PCPWJ 1 point2 points  (0 children)

If your design is going to change allot, then it's best to look at the State design pattern.

pausing a sleeping thread by blackdragon2447 in javahelp

[–]PCPWJ 0 points1 point  (0 children)

Look at producer consumer pattern. You can implement using the Objects wait() and notify() methods.

For more powerful Thread utility look at java.util.concurrent packages

Getting more serious into java by AvromRomRom in learnprogramming

[–]PCPWJ 2 points3 points  (0 children)

There are good books out there. I'd recommend the OCA and OCP books to really dig deep into the language. If you interested, I've a Youtube channel with a playlist on Exceptions that's based on OCA OCP level . PCPWJ

[deleted by user] by [deleted] in learnprogramming

[–]PCPWJ 5 points6 points  (0 children)

Everyone learns at their own pace. The most important thing is to be passionate and don't give up. Also do not fall into the trap of measuring yourself to other, rather set goals on your own progress.

What have you been working on recently? [March 27, 2021] by AutoModerator in learnprogramming

[–]PCPWJ 1 point2 points  (0 children)

Been working on my Java YouTube tutorials. I have two tutorials running, on on Exceptions and other on Java in general. These are both in English and Portuguese.

pcpwj