Warning
Close
Confirm Action
Are you sure you wish to do this?
Cancel
Confirm
Active Topics
Newest Topics
Code of Conduct
18394
Online
Light
Dark
AR15.COM
Forums
AR-15
AK-47
Handgun
Precision Rifles
Armory
Training
Competitive Shooting
General
Outdoors
Archery
Hometown
Industry
Archives
Equipment Exchange
New EE Listings
Getting Started
Rules and Guidelines
EE Forums
Blog
Gear Deals
Store
Tools
Active Topics
Newest Topics
Code of Conduct
All Forums
Community List
General
Industry
AR-15
AK-47
Handguns
Armory
Equipment Exchange
Hometown
Training
Outdoors
Competition Shooting
Archery
Precision Rifles
My Account
AR15.COM
All Forums
Community List
General
Industry
AR-15
AK-47
Handguns
Armory
Equipment Exchange
Hometown
Training
Outdoors
Competition Shooting
Archery
Precision Rifles
Light
Dark
User Panel
Log In
Register
Forums
AR-15
AK-47
Handgun
Precision Rifles
Armory
Training
Competitive Shooting
General
Outdoors
Archery
Hometown
Industry
Archives
Equipment Exchange
New EE Listings
Getting Started
Rules and Guidelines
EE Forums
Blog
Code of Conduct
Gear Deals
Store
View Full Site
18394 Online
Active Topics
Newest Topics
Home
/
General
/
General Discussion
Modern
Classic
TNVC: NEW and Exclusive Filmed SuperGain (FSG) Image Intensifier Tubes & Chimera Pano Giveaway!!
ARCHIVED
[ARCHIVED THREAD] - Any Java programers here?
Posted:
3/6/2013 11:13:36 AM EDT
I have gotten halfway through this and am stuck on number 4. Any help would be appreciated
import java.util.Scanner;
public class Star
{
public static void main( String[] args )
{
Scanner input = new Scanner ( System.in );
int x;
int result = 0;
System.out.println ("Enter a number");
x = input.nextInt();
{
for ( int counter = 1; counter <= x; counter++ )
{
System.out.printf( "*", counter );
}
System.out.println( );
}
}
}
Posted:
3/6/2013 11:19:56 AM EDT
[#1]
Stackoverflow is your friend
Posted:
3/6/2013 11:25:02 AM EDT
[#2]
Geez. I remember doing these type of problems in the 80s.
OP, someone will be along to help you with your homework shortly.
They may or may not tell you the right answer.
Posted:
3/6/2013 11:43:50 AM EDT
[#3]
Quoted:
Geez. I remember doing these type of problems in the 80s.
OP, someone will be along to help you with your homework shortly.
They may or may not tell you the right answer.
I'm sure they will!
On a side note I hate JAVA
Makes me want to
Posted:
3/11/2013 8:10:29 AM EDT
[#4]
Homework done yet?
ARCHIVED
[ARCHIVED THREAD] - Any Java programers here?
Home
/
General
/
General Discussion
Modern
Classic
Active Topics
Newest Topics
Code of Conduct