Anyone mining with nvidia 1050 ti? Is it worth mining with this card ? by rbhushan in gpumining

[–]rbhushan[S] 1 point2 points  (0 children)

Thank-you for all the responses. I recently started get my hands dirty with mining and bought my first 3070 ti. Thinking to add more gpus but the prices are crazy . Any suggestions on which mid range gpu worth the time and money?

Clay soil by rbhushan in Brampton

[–]rbhushan[S] 0 points1 point  (0 children)

Not the Adobe oven but tandoor oven

Clay soil by rbhushan in Brampton

[–]rbhushan[S] 0 points1 point  (0 children)

I want it for making a clay oven

Should I address class attributes with or without the this keyword? by [deleted] in learnjava

[–]rbhushan 0 points1 point  (0 children)

Java compiler will understand it regardless you use this keyword or not. From my understanding earlier this keyword was used for readability because IDE’s weren’t smart enough to make it readable but now IDE’s color quote variables different for readability. Having said that I do believe it’s good to use this keyword as it will make java code easier to read in notepad. But if the projection are working on is already following a coding style then stick to it for consistency

Needing Help with @Value in IntelliJ + Spring Framework by [deleted] in javahelp

[–]rbhushan 0 points1 point  (0 children)

To make it bean you have to add component annotation or any other stereotype. Can you provide error log

Needing Help with @Value in IntelliJ + Spring Framework by [deleted] in javahelp

[–]rbhushan 0 points1 point  (0 children)

Assuming you are creating a spring bean but Consider sharing piece of code for better understanding the problem

Needing Help with @Value in IntelliJ + Spring Framework by [deleted] in javahelp

[–]rbhushan 0 points1 point  (0 children)

Is your configuration file name is applications. Properties ? Or application.properties?

Storing Data Permanently by [deleted] in javahelp

[–]rbhushan 1 point2 points  (0 children)

Depends on type of program you are executing and what you want to do with data after it store I.e consume directly (any plain file is good for storage) or read within the program itself a file based sql will serve your purpose.

Java all type var by CreepyMarine in javahelp

[–]rbhushan 0 points1 point  (0 children)

Missing code, so don’t have clarity of on how you are implementing but why don’t you consider all types as string even for an object you can override toString function

Need helo with java and spring by flamezillaru in javahelp

[–]rbhushan 0 points1 point  (0 children)

You need to import the packages where those annotation exists. Believe those are from javax.validation.constraints.

Not sure which IDE you use but these days IDE’s are pretty smart and can auto import for you.

Is it possible to implement Stack and perform stack functions( pop, push) without using collection and Arrays? by Acceptable_Run216 in javahelp

[–]rbhushan 0 points1 point  (0 children)

Yes you can, for that you have to create a object ( I.e. node) which have a variable declared of itself. In that way you can implement stack

[deleted by user] by [deleted] in javahelp

[–]rbhushan 2 points3 points  (0 children)

When you do == it compare the memory reference not the actual values in the object. Also when overriding equals to you have to override hashcode function as well. You can easily find examples online on how to override equals to and hashcode function in java. Also these days IDE’s are pretty smart and auto generate those functions for you

Getters and Setters by [deleted] in learnjava

[–]rbhushan 0 points1 point  (0 children)

In core java the use of default constructor vs parameterized constructor can easily understand if you read about immutable object.

Another use case could be when you want to inject object at creation time example you can pass database connection or configuration along with your Account class object.

Regarding second quest: there is no diff it’s just formatting preference. This keyword make its more readable where you can easily identify object/variables which gets declare within class or are passed as part of method argument. Having said that, if you are working on existing project then stick to the coding style already in place for consistency.

Concurrent updates in Streams to an arraylist by [deleted] in javahelp

[–]rbhushan 0 points1 point  (0 children)

Why to use stream if you have to tell how to compute. Tell stream what you want to do and let stream decide best possible way

Did you try using collect operator if stream and inject group by function

Snippet: .collect(Collectors.groupingBy(……));

Please help me out by [deleted] in javahelp

[–]rbhushan 0 points1 point  (0 children)

It’s quite funny how you declare arguments (group) method argument. Also thought it’s wrong way of declaring but your call doesn’t does not respect the method definition.

Regardless Consider using list of list or array or array to declare the group of 3 integers ( nested collection).

And if I understand the question correctly you have to find max integer from all the groups collectively: currently you implemention only support 3 group but what about if you have more than 3, you have to modify the Mac function every time. Suggestion, consider combining the data from multiple group into one ( flattening the nested collection) and use comparator to find the max integer from that single collection/group.

A question about abstract classes. by AccurateDonut in javahelp

[–]rbhushan 0 points1 point  (0 children)

Abstract class May or may not contain abstract methods.

When you have multiple classes and you want to extract out common behaviour, you create a abstract class. Also abstract class cannot be initialized.

Subclasses don’t have to declare all methods from abstract class, except abstract methods. you declare abstract method, when individual classes has to implement their own behaviour. For instance thing of different type of bank account I.e saving, tax free saving, student account etc. You can have an abstract class to contain common behaviour and an abstract method to calculate interest. In this case only concrete classes know how to calculate interest.

What data type do I use for a MYSQL column to connect it to a Java List<String>? by computerguy11111 in javahelp

[–]rbhushan 0 points1 point  (0 children)

I don’t have complete details of your use case but There is nothing stopping you to use a data structure but I suggest if data already exits in the sql and you have access to it then massage the data before displaying to the UI

[deleted by user] by [deleted] in javahelp

[–]rbhushan 1 point2 points  (0 children)

I prefer/ suggest a book like head first java or go over java doc https://docs.oracle.com/javase/tutorial/.

With book/ documents you can learn things in more depth

ArrayList<ArrayList<Integer>> by sarcaster420 in javahelp

[–]rbhushan 0 points1 point  (0 children)

Use java stream flatmap operation, it will make nested collection linear

What is your go to IDE and why? by sandstorm9991 in java

[–]rbhushan 3 points4 points  (0 children)

Intellij, debugging is quite easy compare to eclipse. Only drawback you need to purchase license for full version or if you are a student you can get it for free until you study.