#Performtasks
Explore tagged Tumblr posts
Text

RPA by using intelligent automation technologies at Cloud Revolute
0 notes
Text
Droid.java Project
public class Droid { int batteryLevel; String name; public Droid(String droidName) { name = droidName; batteryLevel = 100; } // Constructor method public void performTask(String task) { batteryLevel = batteryLevel - 10; System.out.println(name + " is performing task: " + task); } public String toString() { return "Hello, I am the droid: " + name; } // Main method containing tasks to execute public static void main(String[] args) { Droid joel = new Droid("Joel"); System.out.println(joel); joel.performTask("gaming"); joel.performTask("coding"); } } Output:
>>>Hello I am the droid: Joel
>>>Joel is performing the task "gaming"
>>>Joel is performing the task "coding"
0 notes