Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Hello  RSS feed

 
Frank Espinoza
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is all brand new to me and I need alittle help.
How can I create a function called Greet that is passed two parameters?
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch!

Unfortunately, that probably won't help much. You need to be more specific about what you're asking. Tell the details (and use a meaningful subject line). What have you tried? Why isn't it working? Are you getting compilation errors? Is it not performing as expected?
 
Joydeep Ghatak
Ranch Hand
Posts: 43
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Frank,

Also, in Java, there is nothing known as 'function', we call it as 'methods' ( which represents (the Java way) the behavior of an Object )

Thanks,
Joydeep
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!