Q:

java equivalent of # in python

I would like to convert this line of python :
z = 1.0 #1.0 = 85%, 1.6 = 95%

to java, like :
 double z = 1.0 ;

I don't know python and I'm just trying to transform the reddit ranking algorithm for comments to java.

A:

In Python # is comment.
In java you comment using // for single line comment and 
/*
**
/* 

for multiple line comments.
In java you can do it like this:
double z = 1.0; //1.0 = 85%, 1.6 = 95%

