#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)

austere grove
trim totemBOT
#

This post has been reserved for your question.

Hey @austere grove! Please use /close or the Close Post button 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.

elfin fog
#

Arrays use [] instead of {}. Therefore String{} should be String[].

austere grove
#

it says this now

#

it looks like it works but it still says incomplete 🥲

elfin fog
#

It says that the test file couldnt be found. The code works as you can see in the right terminal panel.

austere grove
#

what should i do lol do i rename the file or do i have to add more to the code

elfin fog
#

I dont know how your auto Tester works. The code runs fine.

austere grove
#

i fixed it but now this is incomplete?

#

what should i do now

elfin fog
#

you have too many println statements

dire veldt
austere grove
#

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");
}
}

dire veldt
#

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"
       );
    }
}
austere grove
#

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");
}
}

austere grove
dire veldt
#
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"
        );
    }
}
austere grove
dire veldt
#

... what?

dire veldt
#
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"
       );
    }
}
austere grove
#

hmm

#

what can it be then 😦

dire veldt
#

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");
    }
}
austere grove
#

// 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?

dire veldt
#

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?

austere grove
#

im gonna try it right now

austere grove
#

@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"
}
}

dire veldt
#

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");
    }
}
dire veldt
austere grove
#

no way

#

LMFAOO

#

im so bad

#

wait i fixed it

#

lets gooo

#

Thank you so much for your help tho!

#

the second code was fucked ngl