Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Created by Daniel on 3/29/2016.
- */
- /*
- Daniel Lawson Self Check
- 2.
- 15 42
- 10 25
- 4.
- 1 3 5
- 1 3 5 7 9 11 13 15
- 1 3 5 7 9 11 13 15 17 19 21 23 25
- 6.
- three times two = 6
- 1 time three = 28
- three time 1 = 2
- 1 times eight = 20
- 8.
- touch your eye to your head
- touch your head to your eye
- touch your shoulders to your elbow
- touch your eyes and ears to your eyes and ears
- touch your toes to your toes
- touch your shoulders to your knees toes
- 10.
- */
- public class selfCheckHomework2to10even {
- public static void main (String[] args){
- printStrings("abc",7);
- }
- public static void printStrings(String string, int times){
- for(int i = 1; i<= times;i++){
- System.out.print(string +" ");
- }
- System.out.println();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment