It didn't tell me anything about converting or anything and BLAM do it
anyone have any hints to what i can do?
No context...
Under discussion
Comments (7)
- Popular
- New
- Old
You must be signed in to leave a comment
Gellert Varga
5 April 2020, 20:15
Attach the program so I can see it, and afterward please notify me.
0
Jack
5 April 2020, 20:47
its next to the"question about the task"
0
Jack
5 April 2020, 20:48

0
Jack
5 April 2020, 20:48

0
Gellert Varga
5 April 2020, 21:21
If i click to the miniature of the program, then i get "404 error Sorry, the page wasn't found". I don't know why.
Please try to put here your program with "Ctrl C + Ctrl V", as a simple text, into the comment field.
0
Jack
6 April 2020, 04:28
https://codegym.cc/quests/lectures/questsyntax.level02.lecture02
0
Gellert Varga
6 April 2020, 19:39
Don't worry about this task. You will soon learn about what the method call means, what the return value means, and how they work. Many others return later to solve such tasks. But such a task is very good for thinking, searching for teaching materials on the net, etc.
1 public static void main(String[] args) {
2 System.out.println(convertCelsiusToFahrenheit(37));
3 }
4
5 public static double convertCelsiusToFahrenheit(int celsius) {
6 //write your code here
7
Line2: The convertCelsiusToFahrenheit(37) is a method call.
It calls the convertCelsiusToFahrenheit(int celsius) method, and send to it the value 37.
Line5: the convertCelsiusToFahrenheit(int celsius) method receives the value 37.
It puts this value into the variable "int celsius" here.
This method is "double", because of it will send back ((return)) a double value to there it was called.
Line7: You have to do something with this variable celsius. See the relationship between the Fahrenheit and Celsius in the task description.
If you use the return keyword, the method will give back your calculated value to where this method was invoked.
Line2: The System.out.println() command gets the calculated value, and prints it.
In the future:
in the help section there is a button or option that (if you checked) will automatically send the program (what you wrote) as an attachment.
0