+ 1
Pls how do write a recipe of anything in java
Confused
5 Réponses
+ 1
Can you elaborate on what you're trying to accomplish? I'll be more than happy to help you out Temiloluwa.
+ 1
Yes how do I write it
+ 1
Sorry about the delay. I've been super busy.
You can accomplish this with simple print statements.
https://code.sololearn.com/cnjsojUa1L4y/#java
public class Program
{
// custom function to simplify System.out.print
public static void print(String str) {
System.out.print(str);
}
// custom function to simplify System.out.println
public static void println(String str) {
System.out.println(str);
}
public static void main(String[] args) {
println("---[ Cooking Rice ]---");
println("1. Bring water to a boil.");
println("2. Rinse the rice.");
println("3. Add rice to boiling water.");
println("4. Add salt. (5kg)");
println("5. Check tenderness of rice.");
println("6. If soft, the rice is done.");
println("----------------------");
}
}
0
Like how to cook rice writing it in Java language
0
that explaination made everything a bit more confusing honestly... Do you want your java program to output rice recipe?