i have to hand in a java project (very simple porject) in less than an hour and i just typed my first script evar!
Problem: can't compile it i'm using textpad but also have notepad if that makes it easier.
Question: If you can help me compile it I would much appreciate it, otherwise if you could tell me if the below code would work and what should be changed if it doesn't I would love you very much.
inb4noobprogram. does not need to be short or complex or anything. just has to display:
thanks! <3
Problem: can't compile it i'm using textpad but also have notepad if that makes it easier.
Question: If you can help me compile it I would much appreciate it, otherwise if you could tell me if the below code would work and what should be changed if it doesn't I would love you very much.
inb4noobprogram. does not need to be short or complex or anything. just has to display:
Let's Program (x5)
And live it up
Let's Program (x5)
I gotta feeling that tonight’s gonna be a good night
That tonight’s gonna be a good night
That tonight’s gonna be a good good night
A feeling
That tonight’s gonna be a good night (x2)
That tonight’s gonna be a good good night
Code:
public class IGottaFeeling { public static void main (String [] args) { int max = 10; int numberOfTimes = 0; while (numberOfTimes <= max) { System.out.println ("Let's Program"); if (numberOfTimes == 4) { System.out.println ("And live it up"); } numberOfTimes = numberOfTimes + 1; } { System.out.println (" I gotta feeling that tonight’s gonna be a good night"); System.out.println ("That tonight’s gonna be a good night"); System.out.println ("That tonight’s gonna be a good good night"); System.out.println ("A feeling"); System.out.println ("That tonight’s gonna be a good night"); System.out.println ("That tonight’s gonna be a good night"); System.out.println ("That tonight’s gonna be a good good night"); } } }