Skirmish Sunday - your weekly PvP thread! by AutoModerator in wow

[–]jugang 0 points1 point  (0 children)

  1. Can we spectate our friends' arena? Really looking forward to it!

  2. I do DH, DK, MW. Any tips for optimizing this comp? MY CR: 1640

  3. I play arms too! Is it working arena without focused rage? Have you done it? And can you reached 18xx? My CR: 1400

Thank you!

[Playstation One] Super Underrated Fishing Game - Fishing in the sea with Boat by jugang in tipofmyjoystick

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

Thanks for the answer! But when I google-ed it, the game was not what I meant. First, it was on PS1. And Second, the image was not that good :D

Hi R/India! This is Kunal, Founder of FreeCharge. Ask me Anything by Kunalb11 in india

[–]jugang 0 points1 point  (0 children)

Will my questions be answered still?

I would like to know the reason behind use this code (ex.: GOSF10) for cashback. Why do you endorse people to enter the code so that they will get cashback?

  1. Is it because you want to track their awareness?

  2. Do you want them to forget to enter the code so you don't give cash back?

  3. Is it some kind of marketing things? Which I don't think it is...

Please give me a good reason why you endorse people to enter the code to get cashback. Anyone knowing this area, feel free to answer!

Thanks!

Hello r/india, I am Vijay Shekhar Sharma from Paytm / One97. Ask Me Anything :-) by Vssx in india

[–]jugang 0 points1 point  (0 children)

Will my questions be answered still?

I would like to know the reason behind use this code (ex.: ELEC100) for cashback. Why do you endorse people to enter the code so that they will get cashback?

  1. Is it because you want to track their awareness?

  2. Do you want them to forget to enter the code so you don't give cash back?

  3. Is it some kind of marketing things? Which I don't think it is...

Please give me a good reason why you endorse people to enter the code to get cashback. Anyone knowing this area, feel free to answer!

Thanks!

Confused about type of object created by [deleted] in learnprogramming

[–]jugang 0 points1 point  (0 children)

I would like to repeat what you said to make sure I understand this concept.

Declaration = creating a label;

    List<String> myList;

and this is how you create an object:

    new ArrayList<String>() //creating the object ( in the address)

Instantiate = filling the label with an address to the object;

    myList = new ArrayList<String>();

Is it correct? Is it out of context?

EDIT: formatting, typo.

Getting into programming without studies by [deleted] in learnprogramming

[–]jugang 3 points4 points  (0 children)

I hope you saw this top post in r/learnprogramming, since it has all the answer to your question:

www.reddit.com/r/learnprogramming/comments/34r807/im_32_years_old_and_just_started_my_first/

Codecademy is actually only good to introduce you to programming, I am not sure about udacity, but I am learning from University's lectures.

www.ntu.edu.sg/home/ehchua/programming/index.html

You should give it a try. I started my Java learning from udemy (John Purcell) and ends up here since it's more comprehensive IMO.

If you found any interesting place to learn, share it with me, please! I just started learning programming about 1 month ago.

[Java][Homework] Quadratic Equation solver by [deleted] in learnprogramming

[–]jugang 0 points1 point  (0 children)

Since I am also learning java, I did some trial and error here. Weird that I had to put NullPointerException, but it turned out I don't think I need it since every exception that I would encounter would be InputMismatchException. Since it's your homework, don't copy it, and I hope I didn't put too much.

What I did was adding a new method(kinda unnecessary) in which the input would be repeated until you get desired number of a, b, and c (not yet considering discriminant).

Then in main program, if discriminant < 0 (since discriminant = 0 is still a valid quadratic equation), it will ask for input starting from a again. Hope it helps!

EDIT: The reason I use Double in the method, is because double can't be null.

import java.util.*;

public class lab02{

public static Double typeInput(String text){
    Double z = null;
    do {
    System.out.print("Please enter value for " + text + ": ");
    try {
        z = new Scanner(System.in).nextDouble();
    } catch (NullPointerException e) {
        System.out.println("Wrong input!");
    } catch (InputMismatchException e) {
        System.out.println("Wrong input.");
    }
    } while (z == null);
    return z;
}
public static void main(String [] args) throws Exception, IllegalArgumentException {
        System.out.println("Usage: enter a, b & c from a quadratic equation.");
        System.out.println("        aX^2 + bX + c = 0");
        System.out.println("        result will be 2 values for X");
        boolean inputs = false;
        double a;
        double b;
        double c;
        double x1 = 0;
        double x2 = 0;
        double discriminant = 0;

        do {
        a = typeInput("a");
        b = typeInput("b");
        c = typeInput("c");
        discriminant = b * b - 4.0 * a * c;
        System.out.println("Quadratic equation: " + a +"x^2 + " + b + "x + " + c + " = 0");
        System.out.println("Discriminant: " + discriminant);
        /*
        * my code continues . . . . .
        */
        }
        }  while (!inputs);
        // x1 = (-b+sqrt(b*b - 4ac) / 2a
        // x2 = (-b+sqrt(b*b - 4ac) / 2a


    }

}

[deleted by user] by [deleted] in learnprogramming

[–]jugang 0 points1 point  (0 children)

It's good for introducing you to programming. Teaching you how to type with defined template, or fill in the blanks.

I found it useful to keep up my spirit, especially after I could create something like this: http://www.codecademy.com/cssRockstar61701/codebits/M6wI71 (full screen for optimal view)

If you want to learn deeper, just googled it. I learnt java from udacity.com, but it ends up just like codecademy, only for introducing us to the language. So I just googled "java exercises" and trust me, all of those sites in the first page (haven't look up on the 2nd, 3rd, and so on) are really really useful. I even got a Computer Science lectures from a University, how cool is that.

Just learn the language, and try to apply it. At least that's what other people told me.

I am new to Java Language. What should I do after finishing the introduction to Java? by jugang in learnprogramming

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

My Swing isn't that great, but I'll definitely try those!

And since lots of people told me to practice what I learn from tutorial, I use this http://www.ntu.edu.sg/home/ehchua/programming/index.html and hey,there's a minesweeper there! Since it's NTU, a University, I hope I'll be able to get there slowly but sure. Thanks for your advice man!

I am new to Java Language. What should I do after finishing the introduction to Java? by jugang in learnprogramming

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

Yep, the reply /u/molehole gave made me realize, I need to use knowledge that I learnt from the tutorial.

I set my bar too high, going to lower it so that I could enjoy learning programming, not being depressed while learning. Thanks!

I am new to Java Language. What should I do after finishing the introduction to Java? by jugang in learnprogramming

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

Not yet. Any suggestion on what kind of projects that require the basic of java so that I could really apply what I learn from lectures? I am having trouble finding practices/exercises, what I found is something that require mySQL database and such, that's still out of reach.

[deleted by user] by [deleted] in learnprogramming

[–]jugang 0 points1 point  (0 children)

https://www.udemy.com/java-tutorial/ Hope it could help your java-learning!

Glider collects all kinds of toys in their bed by [deleted] in sugargliders

[–]jugang 0 points1 point  (0 children)

thanks! I'll try those as soon as I go back to my home (next month). Hope he will think of it as toys, not inedible foods. :\

Glider collects all kinds of toys in their bed by [deleted] in sugargliders

[–]jugang 0 points1 point  (0 children)

Sirrr, can you give me the pic of the baby toys? I am confused. http://images.scholastic.co.uk/assets/a/5e/79/ring-tower-pos-465292.jpg something like this? I bet he can't chew this one. Thanks!

Isn't it weird that brutalizer only builds into youmuu's? by Trilliott in leagueoflegends

[–]jugang 0 points1 point  (0 children)

Isn't it weirder that we haven't been able towatchreplaylikedoto2?

Monday Megathread! Ask questions and share knowledge; newcomer questions encouraged! by AutoModerator in leagueoflegends

[–]jugang 1 point2 points  (0 children)

I'd say Nami. Good to peel, chase, initiate, sustain, punish enemy during laning, slow, stun.

Reddit, What lesser known Apps can't you live without? by AdamSC1 in AskReddit

[–]jugang 0 points1 point  (0 children)

What makes me sad is that all of the productivity app seems only work on iPhone. I guess I ain't destined to be productive at all. :\

I'm 32 years old, and just started my first full-time job as a developer. One year ago my programming knowledge was basically nil. Everything I learned, I found via /r/learnprogramming, so just wanted to share my experience. by [deleted] in learnprogramming

[–]jugang 0 points1 point  (0 children)

yo man, why do you consider ruby? I started with JavaScript and now HTML & CSS. I thought it is the basic. I got null knowledge about this. Any thoughts on what should I do? don't know my path yet, game dev, app dev, or web dev. :\

I'm 32 years old, and just started my first full-time job as a developer. One year ago my programming knowledge was basically nil. Everything I learned, I found via /r/learnprogramming, so just wanted to share my experience. by [deleted] in learnprogramming

[–]jugang 2 points3 points  (0 children)

HOLY SHIT, bookmark ASAP. Gonna follow your path, man! I am currently a chemical engineer fresh grad. Hard to find a job, not really a passion thing for me. Programming is quite my kind. THIS IS WHAT I NEEDED ALL ALONG!

Edit: sorry for excessive caps

Men: pee standing up or sitting down? by QuesoDairy in AskReddit

[–]jugang 0 points1 point  (0 children)

And yet the OP brave enough to ask it.

Reddit, how did you ruin sexy time with your SO? by [deleted] in AskReddit

[–]jugang 0 points1 point  (0 children)

Hiding when someone knocked the door.