Get up to 80 % extra points for free! More info:

Discussion: Lesson 3 - Variables, type system and parsing in Java

Back

 

Comments
Avatar
Shaba Omokhagbo Samson:1/10/2017 13:52

honestly speaking, I'm learning!!!!

 
Reply
1/10/2017 13:52
Avatar
Andrew Kakumba:2/6/2017 16:23

Hi David, I've got a challenge running this script. I've named my project as "Output" and put exactly the same script as you stated it but still showing me an error. Refer to the attachment

package onlineapp;

import java.util.Scanner;

public class Program
{
public static void main(String[] args) {
int a;
a = 56;
System.out.prin­tln(a);
}
}

 
Reply
2/6/2017 16:23
Avatar
Replies to Andrew Kakumba
Andrew Kakumba:2/6/2017 17:27

Davie kindly ignore. I succeeded when I renamed "onlineapp" and "Program" with project name "output"

 
Reply
2/6/2017 17:27
Avatar
Andrew Kakumba:2/7/2017 7:43

Hi David, still have a challenge with running this code below. I named the project as "Basic", I thought I'd replace "package" and "public class" with project name but all in vain. And also at the String output, where do I have to put space and where I shouldn't. Kindly help me on this mate

package onlineapp;

import java.util.Scanner;
public class Program {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.prin­tln("Hi I am Rael, the virtual parrot, and I love to repeat!");
System.out.prin­tln("Let me fuck you:");

String input;
input = scanner.nextline();

String output;
output = input + "," +input + "!";

System.out.prin­tln(output);

}
}

 
Reply
2/7/2017 7:43
Avatar
Replies to Andrew Kakumba
David Capka Hartinger:2/7/2017 13:06

Look at the red underlined parts, those are errors. You have to change the package name in the code to basic, the class name to Basic and there is an error in nextLine (L has to be uppercase).

Reply
2/7/2017 13:06
You can walk through a storm and feel the wind but you know you are not the wind.
Avatar
Clement Caleb Cyprian:3/3/2017 11:43

SIR PLEASE I FIND IT DIFFICULT TO CREAT A NEW PROJECT SIR, PLERASE HELP ME OUT

 
Reply
3/3/2017 11:43
Avatar
Replies to Clement Caleb Cyprian
David Capka Hartinger:3/4/2017 3:30

It was explained in detail in the previous lesson, see https://www.ict.social/…-application

Edited 3/4/2017 3:31
Reply
3/4/2017 3:30
You can walk through a storm and feel the wind but you know you are not the wind.
Avatar
stanley kariuki:5/30/2017 17:14

Does it matter,how i start my codes,like will it not run if i start with a small latter?

 
Reply
5/30/2017 17:14
Avatar
Replies to stanley kariuki
David Capka Hartinger:6/1/2017 7:12

Java is case-sensitive, so yes, it matters. Always use the correct letter case.

Reply
6/1/2017 7:12
You can walk through a storm and feel the wind but you know you are not the wind.
Avatar
Shecy
Member
Avatar
Shecy:6/14/2017 18:54

cool lecture.. am going all the way!!!

 
Reply
6/14/2017 18:54
To maintain the quality of discussion, we only allow registered members to comment. Sign in. If you're new, Sign up, it's free.

10 messages from 10 displayed.