Premium Only Content
			INPUT AND FORMATTED OUTPUT: RIGHT-FACING ARROW | USING NETBEANS | Angel Palacios
#InputAndFormattedOutputRightFacingArrow
LAB: INPUT AND FORMATTED OUTPUT: RIGHT-FACING ARROW
Given two input integers for an arrowhead and arrow body, print a right-facing arrow.
Ex: If the input is:
0 1
the output is:
1
11
00000111
000001111
00000111
11
1
Chapters:
0:00 Intro
0:11 Right-facing arrow
5:37 Output (Results)
SOLUTION: ** LabProgram.java **
import java.util.Scanner;
public class LabProgram {
public static void main(String[] args) {
Scanner scnr = new Scanner(System.in);
int baseChar;
int headChar;
baseChar = scnr.nextInt();
headChar = scnr.nextInt();
System.out.print(" ");
System.out.println(headChar);
System.out.print(" ");
System.out.print(headChar);
System.out.println(headChar);
System.out.print(baseChar);
System.out.print(baseChar);
System.out.print(baseChar);
System.out.print(baseChar);
System.out.print(baseChar);
System.out.print(headChar);
System.out.print(headChar);
System.out.println(headChar);
System.out.print(baseChar);
System.out.print(baseChar);
System.out.print(baseChar);
System.out.print(baseChar);
System.out.print(baseChar);
System.out.print(headChar);
System.out.print(headChar);
System.out.print(headChar);
System.out.println(headChar);
System.out.print(baseChar);
System.out.print(baseChar);
System.out.print(baseChar);
System.out.print(baseChar);
System.out.print(baseChar);
System.out.print(headChar);
System.out.print(headChar);
System.out.println(headChar);
System.out.print(" ");
System.out.print(headChar);
System.out.println(headChar);
System.out.print(" ");
System.out.println(headChar);
}
}
Good luck and I hope this helps!
Thank you all for watching!
Music in this video
Music: Paradise and Harmony
Musician: @iksonmusic
- 	
				
							38:16
								daniellesmithab
3 days agoAlberta Update: Getting Kids Back to the Classroom
20.8K11 - 	
				
							20:48
								BlaireWhite
5 days agoTrans TikTokers Are Crashing Out (Over Nothing)
22.4K11 - 	
				
							2:07:06
								Side Scrollers Podcast
21 hours agoHasan Piker CAUGHT LYING AGAIN + Twitch URGES LEFTIST IDEOLOGY + More | Side Scrollers
66.4K10 - 	
				
							8:40
								MattMorseTV
17 hours ago $10.71 earnedSchumer just KICKED OFF the Left-Wing CIVIL WAR.
25K31 - 	
				
							21:39
								Nikko Ortiz
2 days agoI Take A North Korean Shooting
27K6 - 	
				
							1:46:26
								The Michelle Moore Show
20 hours ago'The Religion Invasion In the U.S. and the Deep State Agenda' Guest, Mark Taylor: The Michelle Moore Show (Nov 3, 2025)
35.8K39 - 	
				
							LIVE
								TruthStream with Joe and Scott
5 days agoSovereign Codes & Cosmic Infrastructure,Ufo's, UAP's, Monads, Matrix Satellites, Interstellar Visitors, SYRONA #505
353 watching - 	
				
							LIVE
								Lofi Girl
2 years agoSynthwave Radio 🌌 - beats to chill/game to
148 watching - 	
				
							5:55:11
								MattMorseTV
13 hours ago $100.53 earned🔴Trump's '60 Minutes' INTERVIEW + MUCH MORE.🔴
163K51 - 	
				
							2:02:36
								Badlands Media
18 hours agoBaseless Conspiracies Ep. 157: Jack the Ripper, the Crash & the Great Disclosure Countdown
41K24