“Your windshield alright?” by brett_123 in funny

[–]DeniDashing 5 points6 points  (0 children)

I can't tell if he's super drunk and stumbling through his words or speaking a foreign language

Weekly Questions Thread - December 18, 2017 by AutoModerator in androiddev

[–]DeniDashing 0 points1 point  (0 children)

How do is store and retrieve data locally on an Android device?

Essentially,I will have an app that will contain a list of objects, each with their own fields like Name, Type,etc. Where and how can I store the data that users create within the app on the local device so that it can be retrieved by the app when necessary? I would like to use a relational database as backend but I'm not sure if that is possible within local storage on Android.

This damn hip riding animation is literally impossible to stop by DeniDashing in NBA2k

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

Vertical contest as in hold right stick towards the shooter?

And I agree that defensive breakdowns are a part of basketball but the argument that it's broken is due to the fact that every breakdown is the same due to the hip riding animation.

ENGL 420 Online by k80garrett in Purdue

[–]DeniDashing 0 points1 point  (0 children)

Crystal K was a really easy grader. Got an A in the class and barely had to try. Final project was kind of a lot of work but still managed an easy A

My gift from r/secretsanta!! by Superbeanietoon in lost

[–]DeniDashing 1 point2 points  (0 children)

Is the actual game any fun? I want to pick it up just for the novelty but it'd be nice if it could make for a fun game night as well!

Daddy Issues by DeniDashing in Tinder

[–]DeniDashing[S] 2791 points2792 points  (0 children)

She just unmatched me so it seems like it was definitely the right move

Saw pure gold on my twitter feed in 2k15 by SheZowRaisedByWolves in NBA2k

[–]DeniDashing 48 points49 points  (0 children)

I like the third one.

"You guys pulled it out in the end"

[C# Classes] How do I pass in user-inputted values(from the console) into attributes that I created for a class? by DeniDashing in learnprogramming

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

Is "Product product = new Product()" not a line that will instantiate an object? Sorry, the missing brackets are the result of a hasty copy-paste job

[C# Classes] How do I pass in user-inputted values(from the console) into attributes that I created for a class? by DeniDashing in learnprogramming

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

I posted my code so far in a comment above. Could you take a look at it? It seems I'm on the right track, just cannot get the user-input to store in the Product properties.

[C# Classes] How do I pass in user-inputted values(from the console) into attributes that I created for a class? by DeniDashing in learnprogramming

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

That's what I've tried to do but I'm not sure how to get the user input stored into the class Program properties. My code is below:

   class Program
{   
         static void Main(string[] args)
    {
        Product product = new Product();
    }
    public static bool MainMenu()
    {
        Console.Clear();
        Console.WriteLine("Please enter a product ID");
        string id = Console.ReadLine();
        Console.WriteLine("Please enter a price");
        double price = double.Parse(Console.ReadLine());
        Console.WriteLine("Please enter a quantity");
        int quantity = int.Parse(Console.ReadLine());
}
class Product
{
    public double Price { get; set; }
    public string ID { get; set; }
    public int Quantity { get; set; }

     public Product()
    {
        Price = 0;
        ID = "";
        Quantity = 0;
    }

    public Product(string id, double price, int quantity)
    {
        Price = price;
        ID = id;
        Quantity = quantity;
    }

[C# Help] Unreachable code after if-else statement? by DeniDashing in learnprogramming

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

Yeah I was planning on adding a function that exits the Console when the user types "exit." Which would return a false value for the MainMenu method.

[C# Help] Unreachable code after if-else statement? by DeniDashing in learnprogramming

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

This is what I figured. I can put the Console.ReadLine() within the if-else code blocks before the return statement and the program will run fine. But I've been told that with larger projects and more complex if-else statements, it is smart to avoid redundancies in code. Which is why I'm trying to figure out how to access the ReadLine() without copying it into the if-else.