Guest User

Untitled

a guest
Mar 18th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. public class LittleClass {
  2. public int doThingOne(){
  3. int numTimes=6;
  4. int multiplier=5;
  5. numTimes+=1;
  6. for (int i=0; i<numTimes; i++){
  7. System.out.println(multiplier*i);
  8. }
  9. return numTimes;
  10. }
  11.  
  12. public void doThingTwo(){
  13. int occurrences=3;
  14. int timeser=10;
  15. System.out.println("Doing thing two");
  16. for (int i=0; i<occurrences; i++){
  17. System.out.println(timeser*i);
  18. }
  19. System.out.println("Done thing two");
  20. }
  21. }
Add Comment
Please, Sign In to add comment