Recent content by hybridxsv

  1. H

    Java, drawing a triangle using * symbols help

    I'm a very bad object oriented person I feel like so the code usually comes out quite messy unfortunately but here's what I did. When I saw the assignment, the first thing I thought of was the bigger version just has multiple triangles of the simpler version, so I just decided to store that...
  2. H

    Java, nextLine() help

    Thanks a lot, yeah I swear yahoo answers have solutions to everything that I'll ever need. I just finished the assignment thanks to that link, thanks!
  3. H

    Java, nextLine() help

    Hi, I have this code but for some reason the nextLine() does not get executed, any ideas on why? Any help would be great, thanks. public static void menu() { Tester getQuestion = new Tester(); Scanner input = new Scanner(System.in); while(Quit == false) {...
  4. H

    Java, drawing a triangle using * symbols help

    Thanks for the help and my bad about the wrong section. I finally got it to work. for(int i=0; i<sides; i++){ String triangle = ""; int j = 0; System.out.print(new String(pad,0,i)); while(j < height) { triangle = triangle + "* "; j++; }...
  5. H

    Java, drawing a triangle using * symbols help

    So my assignment is to draw a triangle using the * symbol. The program will ask the user for a length input, which will be the height (number of lines). ___--* __--* * __-* * * --* * * * (Example of length = 4, ignore the _ and -, just put those so that it looks...