Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Pattern{
- public void gibMusterAus(int a, int b){
- int zeichenZaehler = 0;
- for(int i = 0; i < a; i++){
- for(int g = 0; g < b; g++){
- if(zeichenZaehler % b == 0){
- System.out.print(“*”);
- }
- else{
- System.out.print(“.”);
- }
- zeichenZaehler++;
- }
- System.out.print(“\n”);
- }
- }
- }
Add Comment
Please, Sign In to add comment