0

Please why is it when am creating a code using strings it gives me 'no output'

like I want to write my name is 'fakorede damilola' it not through input just normal coding and output

6th Feb 2018, 11:51 AM
Fakorede Damilola
8 Answers
+ 5
// Use a lowercased C for class keyword. public class program { public static void main(String[] args){ String firstName, lastName; firstName = "Damilola"; lastName = "Fakorede"; System.out.println("My name is " + firstName +" "+lastName); } }
6th Feb 2018, 12:18 PM
Dev
Dev - avatar
+ 3
Look at your variable names. In String name, you have fistname, but when you try to output it, you write firstName. difference is n-N. firstname firstName
6th Feb 2018, 12:05 PM
Sad
Sad - avatar
+ 2
Oh yes, that's what I missed
6th Feb 2018, 12:18 PM
Sad
Sad - avatar
+ 2
Ooh thanks a lot...hope am not bothering cause I have a big feeling the questions are going to keep coming
6th Feb 2018, 12:22 PM
Fakorede Damilola
+ 2
We are here to help :)
6th Feb 2018, 12:23 PM
Sad
Sad - avatar
+ 1
Post your code so we can help and find problem
6th Feb 2018, 12:02 PM
Sad
Sad - avatar
+ 1
public Class program { public static void main(String[] args){ String firstname, lastname; firstname = "Damilola"; lastname = "Fakorede"; System.out.println("My name is " + firstName +" "+lastName); } }
6th Feb 2018, 12:03 PM
Fakorede Damilola
0
thank you but I have changed the N-n and I checked there is no fistname there they are both correct in spelling and all but it is not still working still 'no output'
6th Feb 2018, 12:11 PM
Fakorede Damilola