Write single and multiline comments to clarify the code public class Image { int numberOfPhotos; double fStop; int iso; int filterNumber; String subjectMatter; String color; String location; boolean isblurry; public String looksBlurry(boolean key){ if ( key == true){ return "Photo is Blurry"; } else{ return "Photo is Clear"; } } public void printPhotoDetails (){ System.out.println("----------------------------------"); System.out.println("Printing details of current photo:"); System.out.println("----------------------------------"); System.out.println("This is a/an " + subjectMatter +"roll:" + "in: " + color + "using filter: "+ filterNumber + "."); System.out.println("It has " + numberOfPhotos + "photos with " + fStop + "fStop." ); System.out.println("This photo was taken near the"+ location + "with film at: " + iso + "ISO:"+ "."); if (isblurry == true){ System.out.println("You can post it."); } else { System.out.println("You should post it."); } } }
Write single and multiline comments to clarify the code
public class Image {
int numberOfPhotos;
double fStop;
int iso;
int filterNumber;
String subjectMatter;
String color;
String location;
boolean isblurry;
public String looksBlurry(boolean key){
if ( key == true){
return "Photo is Blurry";
}
else{
return "Photo is Clear";
}
}
public void printPhotoDetails (){
System.out.println("----------------------------------");
System.out.println("Printing details of current photo:");
System.out.println("----------------------------------");
System.out.println("This is a/an " + subjectMatter +"roll:" + "in: " + color + "using filter: "+ filterNumber + ".");
System.out.println("It has " + numberOfPhotos + "photos with " + fStop + "fStop." );
System.out.println("This photo was taken near the"+ location + "with film at: " + iso + "ISO:"+ ".");
if (isblurry == true){
System.out.println("You can post it.");
}
else {
System.out.println("You should post it.");
}
}
}

Step by step
Solved in 2 steps









