Shazgurot's Profile User Rating: -----

Reputation: 3 Apprentice
Group:
Members
Active Posts:
32 (0.05 per day)
Joined:
17-April 13
Profile Views:
573
Last Active:
User is offline Oct 21 2014 01:56 PM
Currently:
Offline

Previous Fields

Country:
DE
OS Preference:
Windows
Favorite Browser:
Chrome
Favorite Processor:
Intel
Favorite Gaming Platform:
PC
Your Car:
Volkswagen
Dream Kudos:
0
Icon   Shazgurot has not set their status

Posts I've Made

  1. In Topic: Char Array Error

    Posted 9 Apr 2014

    Thank you again, quite some silly errors I got in there...maybe I'm too tired at the moment.
    It now works as intended.
  2. In Topic: Char Array Error

    Posted 9 Apr 2014

    That did the trick, thank you!

    However now after compiling and trying to run the program, I get the following error:

    segmentation fault: 11
    
  3. In Topic: What games are you most looking forward to?

    Posted 14 Feb 2014

    Dark Souls II, already preordered the collectors edition.
  4. In Topic: What are you working on today?

    Posted 13 Feb 2014

    I'm studying for my first programming exam right now =) So my day/night consists of heavy green tea drinking while writing java noob code.
  5. In Topic: Equal switch - case to if - else statement

    Posted 4 Nov 2013

    View Postjon.kiparsky, on 04 November 2013 - 12:46 AM, said:

       else if(n >= 5 && n <= 7)
    


    What values correspond to this case?


    if(n < 5 || n > 8)
    


    What values correspond to this case? Can you list them?

    else
    


    What values are left?



    Oh ok I think I get it now.

    Values for
    else if(n >= 5 && n <= 7)
    
    would be:

    5, 6, 7

    Values for
    if(n < 5 || n > 8)
    
    :

    Every number except for 6 and 7.

    Values for
    else
    


    8


    So an equal switch - case statement would be:

    switch(n)
    	{
    		case 8: System.out.println("Area 3");
    			break;
    		case 5:
    		case 6:
    		case 7: System.out.println("Area 2");
    			break;
    		default: System.out.println("Area 1");
    			break;
    	}
    


    Thanks for your help =)

My Information

Member Title:
New D.I.C Head
Age:
24 years old
Birthday:
July 2, 1990
Gender:
Location:
Germany
Full Name:
Dale
Years Programming:
0
Programming Languages:
Java

Contact Information

E-mail:
Private

Comments

Shazgurot has no profile comments yet. Why not say hello?