Jump to content

Moar Java noob questions :D

Scia
Go to solution Solved by chaozbandit,

{ } refers to methods and functions.

 

( ) refers to declaring variables or parameters.

Hi ^^

 

Quick question:

 

What do ( ) do in Java?

What do you call what's inbewteen them? [Not {}]

 

ty <3

Frost upon these cigarettes.... lipstick on the window pane...

Link to comment
Share on other sites

Link to post
Share on other sites

You can put variables that belong to the method between them.

Intel i7-870  //  MSI GTX 670 PE       ///       Intel i7-4500U  //  GT720M

Link to comment
Share on other sites

Link to post
Share on other sites

{ } refers to methods and functions.

 

( ) refers to declaring variables or parameters.

Folding@Home | BOINC

CPU: AMD Ryzen 9 3900X + Celsius S36 GPU: ASUS TUF RTX3080 

MB: ASRock x470 Taichi RAM: Corsair Vengeance RGB DDR4-2666 32GB 

CASE: Fractal Design Define 7 Panda STORAGE: WD Black SN770 2TB + WD Red Pro 6TB

Link to comment
Share on other sites

Link to post
Share on other sites

awesome ty all :)

Frost upon these cigarettes.... lipstick on the window pane...

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×