#Help! im lost, i know its a simple fix but im just very new to this and would appreciate help!
57 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @austere grove! Please use
/closeor theClose Postbutton above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
Arrays use [] instead of {}. Therefore String{} should be String[].
It says that the test file couldnt be found. The code works as you can see in the right terminal panel.
what should i do lol do i rename the file or do i have to add more to the code
I dont know how your auto Tester works. The code runs fine.
you have too many println statements
please send your lines and I'll correct it for you
public class SongLyrics {
public static void main(String[] args){
System.out.println("Call My Phone, i know you miss me, girl");
System.out.println("Call my phone, i know you miss me,");
System.out.println("Call My Phone, i know you miss me, girl");
System.out.println("Call My Phone, i know you miss me, girl");
System.out.println("When I'm on the road");
System.out.println("just hit my phone");
System.out.println("You wont get the dial tone");
System.out.println("Summrs on her ringtone");
System.out.println("ima hit you back like ping-pong");
System.out.println("Was kids, now we all grown");
System.out.println("Presidential S-Class, bae, you know what I'm on");
System.out.println("Don't ask what's in my cup, I'm in a different time zone");
System.out.println("Goin' through coffe cups, not tryna pick up the phone");
System.out.println("Get in my feelings, singin' out, No");
}
}
So you don't need all of those prints
You can use \n to iterate a new line (or move down one)
public class SongLyrics {
public static void main(String[] args){
System.out.println("Call My Phone, i know you miss me, girl\n"
+ "Call my phone, i know you miss me,\n"
+ "Call My Phone, i know you miss me, girl\n"
+ "Call My Phone, i know you miss me, girl\n"
+ "When I'm on the road\n"
+ "just hit my phone\n"
+ "You wont get the dial tone\n"
+ "Summrs on her ringtone\n"
+ "ima hit you back like ping-pong\n"
+ "Was kids, now we all grown\n"
+ "Presidential S-Class, bae, you know what I'm on\n"
+ "Don't ask what's in my cup, I'm in a different time zone\n"
+ "Goin' through coffe cups, not tryna pick up the phone\n"
+ "Get in my feelings, singin' out, No\n"
);
}
}
would you be able to fix this?
public class MovieQuoteInfo {
public static void displayMovieQuote() []
System.out.println("Movie: The Fast And The Furious: Tokyo Drift")
System.out.println("Character: Han lue");
System.out.println("Quote:Life's simple. you make choices and you don't look back");
System.out.println("Year Released: 2006");
}
}
makes more sense THANKS
public class MovieQuoteInfo {
public static void displayMovieQuote() {
System.out.println("Movie: The Fast And The Furious: Tokyo Drift\n"
+ "Character: Han lue\n"
+ "Quote:Life's simple. you make choices and you don't look back\n"
+ "Year Released: 2006"
);
}
}
... what?
you didnt copy what I sent then
public class SongLyrics {
public static void main(String[] args){
System.out.println("Call My Phone, i know you miss me, girl\n"
+ "Call my phone, i know you miss me,\n"
+ "Call My Phone, i know you miss me, girl\n"
+ "Call My Phone, i know you miss me, girl\n"
+ "When I'm on the road\n"
+ "just hit my phone\n"
+ "You wont get the dial tone\n"
+ "Summrs on her ringtone\n"
+ "ima hit you back like ping-pong\n"
+ "Was kids, now we all grown\n"
+ "Presidential S-Class, bae, you know what I'm on\n"
+ "Don't ask what's in my cup, I'm in a different time zone\n"
+ "Goin' through coffe cups, not tryna pick up the phone\n"
+ "Get in my feelings, singin' out, No\n"
);
}
}
You don't have an error, you have requirements set.
It tells you to use four print statements
public class SongLyrics {
public static void main(String[] args){
System.out.println("Call My Phone, i know you miss me, girl\n"
+ "Call my phone, i know you miss me,\n"
+ "Call My Phone, i know you miss me, girl\n"
+ "Call My Phone, i know you miss me, girl\n"
+ "When I'm on the road\n"
+ "just hit my phone\n"
+ "You wont get the dial tone\n"
+ "Summrs on her ringtone\n"
+ "ima hit you back like ping-pong\n"
+ "Was kids, now we all grown\n"
+ "Presidential S-Class, bae, you know what I'm on\n"
+ "Don't ask what's in my cup, I'm in a different time zone\n"
+ "Goin' through coffe cups, not tryna pick up the phone\n"
+ "Get in my feelings, singin' out, No\n"
);
System.out.println("Application requirement 2");
System.out.println("Application requirement 3");
System.out.println("Application requirement 4");
}
}
// four println() statements display four lines of the lyrics of favorite song.
// line One
System.out.println("I can show you the world");
// line Two
System.out.println("Shining, shimmering, splendid");
// line Three
System.out.println("Tell me, princess, now when did");
// line four
System.out.println("You last let your heart decide?");
}
}
would this work?
Yes just make sure you're using \n at the end of each one to iterate a new line
or else you'll have this
I can show you the worldShining, shimmering, splendidTell me, princess, now when didYou last let your heart decide?
@austere grove is it working now?
im gonna try it right now
@dire veldt u mind fixing this for me?
public class SongLyrics {
public static void main(String[] args){
System.out.println("Call My Phone, i know you miss me, girl\n"
+ "Call my phone, i know you miss me,\n"
+ "Call My Phone, i know you miss me, girl\n"
+ "Call My Phone, i know you miss me, girl\n"
+ "When I'm on the road\n"
+ "just hit my phone\n"
+ "You wont get the dial tone\n"
+ "Summrs on her ringtone\n"
+ "ima hit you back like ping-pong\n"
+ "Was kids, now we all grown\n"
+ "Presidential S-Class, bae, you know what I'm on\n"
+ "Don't ask what's in my cup, I'm in a different time zone\n"
+ "Goin' through coffe cups, not tryna pick up the phone\n"
+ "Get in my feelings, singin' out, No\n"
// line One
System.out.println("I ain't came to play\n"
// line Two
System.out.println("Everywhere in the H\n"
// line Three
System.out.println("Everywhere I go, I'm straight\n"
// line Four
System.out.println("Don't ruin my day\n"
}
}
You never close your print function
System.out.println("I ain't came to play\n"System.out.println("Everywhere in the HSystem.out.println("Everywhere I go, I'm straight\n"System.out.println("Don't ruin my day\n"
);
public class SongLyrics {
public static void main(String[] args){
System.out.println("Call My Phone, i know you miss me, girl\n"
+ "Call my phone, i know you miss me,\n"
+ "Call My Phone, i know you miss me, girl\n"
+ "Call My Phone, i know you miss me, girl\n"
+ "When I'm on the road\n"
+ "just hit my phone\n"
+ "You wont get the dial tone\n"
+ "Summrs on her ringtone\n"
+ "ima hit you back like ping-pong\n"
+ "Was kids, now we all grown\n"
+ "Presidential S-Class, bae, you know what I'm on\n"
+ "Don't ask what's in my cup, I'm in a different time zone\n"
+ "Goin' through coffe cups, not tryna pick up the phone\n"
+ "Get in my feelings, singin' out, No\n"
// line One
System.out.println("I ain't came to play\n");
// line Two
System.out.println("Everywhere in the H\n");
// line Three
System.out.println("Everywhere I go, I'm straight\n");
// line Four
System.out.println("Don't ruin my day\n");
}
}
You can close the ticket here and thank me :)