₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,041 members, 8,420,023 topics. Date: Thursday, 04 June 2026 at 09:46 AM

Toggle theme

KINGTELLER's Posts

Nairaland ForumKINGTELLER's ProfileKINGTELLER's Posts

1 2 3 4 5 6 7 8 ... 12 13 14 15 16 17 18 19 20 (of 25 pages)

PoliticsRe: Allison-madueke Critically Ill In A London Hospital by KINGTELLER: 8:59pm On Jul 27, 2015
WaffenSS:
you've syntax errors in lines 1, 5, 11, 12, 22 and a hanging braces in line 24

the orphaned brace should be closing your class declaration

also, if you use [string args] it would be easier to populate your array when calling up your program, rather than the messy way you've here
There is only one syntax error (Line1).. those Icon are as a result HTML coding of nairaland text...
As per calling up arraylist... I did another version of it
https://www.nairaland.com/2481838/el-rufai-court-sue-union#36328888
I ran the program and the output was perfectt
PoliticsRe: El Rufai In Court To Sue The Union Over Report Of Declaration Of Assets..photos by KINGTELLER:
import java.util.ArrayList;

public class WorkSheet {
public static void main(String[] args){

String header1= "Agenda";
String header2= "Grade-Score";
String underLine = ("--------------------------------------------------------------------"wink;

String[] descr = new String[7];
String[] grade = new String[7];
descr[0] = "Security & Safety "; grade[0]= "F";
descr[1] = "Jobs Creation"; grade[1]= "AWR";
descr[2] = "Feeding Sch Pupils"; grade[2]= "AWR";
descr[3] = "Boosting Naira Value"; grade[3]= "F";
descr[4] = "Fighting Corruption"; grade[4]= "E";
descr[5] = "Power generation"; grade[5]= "grin";

System.out.println ("" );
System.out.printf ("%-30s %s %n", header1, header2);
System.out.println (underLine);

int i;
int endVal = 7;

for (i = 0; i < endVal; i++){
System.out.printf ("%-30s %s %n" , descr[i], grade[i]);
};


System.out.println (underLine);
System.out.println ("" );
}
}

<pre>
Run Output:

Agenda________________________Grade-Score
--------------------------------------------------------------------
Security & Safety ..............................F
Jobs Creation .................................AWR
Feeding Sch Pupils..........................AWR
Boosting Naira Value...........................F
Fighting Corruption............................ E
Power generation............................. .D
null............................................... null
--------------------------------------------------------------------
</pre>
cheesy cheesy cheesy cheesy cheesy cheesy cheesy cheesy cheesy No offence ooo. Naa Robot work... grin grin grin
PoliticsRe: Allison-madueke Critically Ill In A London Hospital by KINGTELLER:
gioglobal:
an you are proud to advertise to us that you write programshuh is that c# or #c? My father be mumu, better learn well before you start copying and pasting nonsense
Se Ogbadun sha

grin grin grin grin grin grin grin cheesy cheesy cheesy cheesy
PoliticsRe: Allison-madueke Critically Ill In A London Hospital by KINGTELLER: 2:59pm On Jul 27, 2015
Heluwajohnson:
THUMB UP
!! Borda mi ode
Ehen............ Ode nii Egbon baba abi huh
grin grin grin grin grin grin grin
PoliticsRe: Allison-madueke Critically Ill In A London Hospital by KINGTELLER:
See what my program scored Buhari government for the last two months in office. cheesy cheesy cheesy cheesy cheesy

public class WorkSheet{

public static void main (){

String header1= "Agenda";
String header2= "Grade-Score";
String underLine = ("----------------------------------------"wink;

String descr1 = "Security & Safety of Citizen"; String grade1= "F";
String descr2 = "Job Creation"; String grade2= "AWR";
String descr3 = "Feeding Sch Pupils"; String grade3= "AWR";
String descr4 = "Boosting Naira Value"; String grade4= "F";
String descr5 = "Fighting Corruption"; String grade5= "E";
String descr6 = "Power generation"; String grade6= "grin";

System.out.println (""wink;
System.out.printf ("%-30s %30s %n" , header1, header2);
System.out.println (underLine);

System.out.printf ("%-30s %30s %n" , descr1, grade1);
System.out.printf ("%-30s %30s %n" , descr2, grade2);
System.out.printf ("%-30s %30s %n" , descr3, grade3);
System.out.printf ("%-30s %30s %n" , descr4, grade4);
System.out.printf ("%-30s %30s %n" , descr5, grade5);
System.out.printf ("%-30s %30s %n" , descr6, grade6);

System.out.println (underLine);
System.out.println (""wink;


}
}



Output:


Agenda _________________Grade-Score
--------------------------------------------------------
Security & Safety of Citizen.................. F
Job Creation ....................................AWR
Feeding Sch Pupils .......................... AWR
Boosting Naira Value ..........................F
Fighting Corruption ..............................E
Power generation ................................D
-------------------------------------------------------
Car TalkRe: List Of Approved Traffic/vehicle Offences In Nigeria by KINGTELLER: 1:27pm On Jul 27, 2015
I think all drivers should have a copy of this template cheesy cheesy cheesy cheesy
CrimeRe: Nigerian Man Kills US Woman Over Money Dispute (Picture) by KINGTELLER: 1:09pm On Jul 27, 2015
Just one word for the Killer

public class Murderer{

public static void main (String[] args ){

System.out.println ("Crucify the Murderer..." );

}
}



Output: Crucify the Murderer.. angry angry angry angry angry angry
PoliticsRe: Tony Elumelu Meets With Obama In Kenya by KINGTELLER: 3:04pm On Jul 25, 2015
DoTheNeedful:
Yeah...u be my padi for Java but not for politics. You sound as a TANoid grin grin
I'm not inclined to politics grin grin grin
PoliticsRe: Tony Elumelu Meets With Obama In Kenya by KINGTELLER: 1:55pm On Jul 25, 2015
DoTheNeedful:
Your program will not run. You are trying to print outside the main. By the way,any evidence that PMB is BH huh
I know... build your own independent class and reference this class by creating an object of this class.
PoliticsRe: Tony Elumelu Meets With Obama In Kenya by KINGTELLER: 11:47am On Jul 25, 2015
francizy:
How long did it take you to learn please? Thanks..
I studied Comp. Sci so I learnt programming right from year 2. So it depends on individual
PoliticsRe: Tony Elumelu Meets With Obama In Kenya by KINGTELLER: 11:39am On Jul 25, 2015
francizy:
Brother, how do you guys do all these? Are you supposed to know all the codes off heart? huh
Constant practise make the coding stick in ur memory
PoliticsRe: Tony Elumelu Meets With Obama In Kenya by KINGTELLER:
nwaenugu:
Your naming convention is wrong !!! angry
You should use camel case notation, e.g. fullName, pickChar etc. Also, concatenation of String is not good practice, you should use the StringBuffer class instead.

Regards

Mr Pedantic
Yeah the naming may not conform but I just like coding in a name convention that pleases me... My main concern in programming is the final output later I can then start considering memory performance and multi-threading
PoliticsRe: Tony Elumelu Meets With Obama In Kenya by KINGTELLER: 11:30am On Jul 25, 2015
nigerianvenom:
Are u a programmer?
U can help program buhari's hammer m coconut head
Hahaha.... see the program below:

public class;
public static void main(Strings[] args) {
System.out.println ();
}
PoliticsRe: Tony Elumelu Meets With Obama In Kenya by KINGTELLER: 11:25am On Jul 25, 2015
kentAire:
bro wch programing language b dis?


pls ans asap.
thks
Thats Almighty Java now...
PoliticsRe: Tony Elumelu Meets With Obama In Kenya by KINGTELLER: 10:26am On Jul 25, 2015
achemedez:
PROGRAMMERh:Hope this ur java program go run sha?
Ama run it on mah system..
If eno run eh?
Haba he go run... but if u want to run make sure u reference the class because its a dependent java class (No main method)
PoliticsRe: Tony Elumelu Meets With Obama In Kenya by KINGTELLER:
The output of a program alternating BuHARi MuhAMmed name:

public class PMB;
public void message(){
String FullName= "Buhari Muhammadu";
String PickChar="";
int SpacePos=FullName.indexOf(" " );
String FirstPick="";
FirstPick=FullName.substring(2,5);

PickChar= FullName.substring((SpacePos+4),(SpacePos+4)+2);

String NewName= FirstPick+PickChar;
System.out.println (NewName);

}

Output: haram

grin grin grin cheesy cheesy cheesy
PoliticsRe: The Mistake Tinubu Made In The APC Marriage – Adebanjo - From Vanguard by KINGTELLER:
The output of a program alternating Buhari Muhammed name:

public class PMB;
public void message(){
String FullName= "Buhari Muhammadu";
String PickChar="";
int SpacePos=FullName.indexOf(" "wink;
String FirstPick="";
FirstPick=FullName.substring(2,5);

PickChar= FullName.substring((SpacePos+4),(SpacePos+4)+2);

String NewName= FirstPick+PickChar;
System.out.println (NewName);

}

Output: haram
PoliticsRe: Cameroon Bans Women Face Veil Over Bombings by KINGTELLER: 7:29pm On Jul 17, 2015
ikp4succes:
u based in Naija.. whats your speciality ?
The program code which I wrote.. Presently, switching to C#
PoliticsRe: Cameroon Bans Women Face Veil Over Bombings by KINGTELLER: 7:17pm On Jul 17, 2015
ikp4succes:
Are u a software developer ?
Yes
PoliticsRe: Cameroon Bans Women Face Veil Over Bombings by KINGTELLER: 7:21am On Jul 17, 2015
ikp4succes:
heheheh this guy.. 2 secs is lot of time in computer time.. it might seem quick to u, but to computer thats a lot. Nice code, just try to code, thinking about memory first..
Thanks I will always consider your ur suggestion when doing advance coding
PoliticsRe: Cameroon Bans Women Face Veil Over Bombings by KINGTELLER:
GiantParrot:
This is a very uncommon attempt at humour. I'm not even going to talk about the inefficient coding. Don't you think 'else' should come before 'something' after calling the unnecessary Array.sort? And the variable 'Type' just appeared from nowhere without being initialized. Hmm. Did you even compile this code at all?
No , I did the coding on my phone.. I used the Array import to sort the arraylist (I did it on purpose sha) Dont wanna use the "If else conditional statement"...Ur brain naa debugger... Kudos grin grin
Music/RadioRe: Me And My Canadian Friend Did A Dance To "Show You The Money" By Wizkid by KINGTELLER: 6:06pm On Jul 16, 2015
herald9:
You just started programming abi?
E dey sweet you like madt and you can't help showing off in every thread...
grin grin He dey pain you.. No vex I understand
WebmastersRe: Please How Much Can I Charge To Build A Church Database? by KINGTELLER: 6:03pm On Jul 16, 2015
DonTim1:
Error: NullReferenceException! unknown identifier 'First_Page' grin
U don go quickly run am from ur compiler grin grin
Oya modify with and re-run

System.out.println("OUTPUT: " + Page);
PoliticsRe: Cameroon Bans Women Face Veil Over Bombings by KINGTELLER:
ikp4succes:
ur code has serious memory issues..what's the need of putting that sentence into an array, if you not going to use it or dynamically add to it... Also the Arrays.sort() what's the use.. The only thing meaningful is the scanner class... All these johnathanians and pdp _ e-warriors.. Sai baba grin grin grin
Go and check ur temperature.. Jokes apart It is not normal. You can code with what ever parameter, if u run it , it will take 2 secs to build so what is the memory itch about The output is the koko.. So that ppl like u wont decode, that was why I make it complex
PoliticsRe: Cameroon Bans Women Face Veil Over Bombings by KINGTELLER: 4:41pm On Jul 16, 2015
InvertedHammer:
/
Not compiling

Syntax error 204

\
hahaha... What IDE or Compiler are you using, hope no be Otigba oo
grin grin
PoliticsRe: Cameroon Bans Women Face Veil Over Bombings by KINGTELLER: 4:18pm On Jul 16, 2015
mohammedmagnus:
so you went thru all this stress for just one like
"LIKE" does Seun credit you for that ??
PoliticsRe: Cameroon Bans Women Face Veil Over Bombings by KINGTELLER: 4:01pm On Jul 16, 2015
ibullem:
Baba you funny die, you think say all this olodo for hia fit debug this your java grin grin
cheesy cheesy cheesy cheesy Those wey sabi go decode.. if I use normal language, All this APC folks go stone me..lol grin grin grin
WebmastersRe: Please How Much Can I Charge To Build A Church Database? by KINGTELLER:
class Iberre {
public static void main (String[] args){
String Page;
Page= "LET ME ASK JAVA DEVELOPER";

System.out.println("OUTPUT: " + Page);
}
}


OUTPUT: LET ME ASK JAVA DEVELOPER embarassed embarassed embarassed embarassed undecided undecided undecided
Music/RadioRe: Me And My Canadian Friend Did A Dance To "Show You The Money" By Wizkid by KINGTELLER: 3:52pm On Jul 16, 2015
toluine56:
Lol..abeg change ur moniker to javaboss if u fit.
i no b woman oo..lol
I am not a Java Boss.. tongue tongue tongue tongue
PoliticsRe: Cameroon Bans Women Face Veil Over Bombings by KINGTELLER:
This code is to Buhari

import java.util.Scanner;
import java.util.Arrays;
public class BabaGoSlow{

public static void main(String [] args){

String[] Buhari = new String[4];
Buhari [0] = " Baba";
Buhari [1] = " else";
Buhari [2] = " we call you";
Buhari [3] = "do something";

Arrays.sort(Buhari);

for (int i=0; i<Buhari.length; i++){
System.out.print(Buhari[i]);
}
String Type;
Scanner input= new Scanner(System.in);

System.out.println (" :type any name *****" );
Type=input.next();


System.out.println (Type);
}
}


Baba do something else we call you : type any name ***** cheesy cheesy cheesy grin grin
Music/RadioRe: Me And My Canadian Friend Did A Dance To "Show You The Money" By Wizkid by KINGTELLER: 3:25pm On Jul 16, 2015
toluine56:
baddest java p'mer.
make we relate na
You be woman?? Naa woman I dey relate with ooo...lol..... Naa joke ooo grin grin grin
Nairaland GeneralRe: This Is Actually A Coffin (pics). by KINGTELLER: 3:03pm On Jul 16, 2015
Eeeyah this Code is for the dead

class TheDead {
public static void main (String[] args){
String REST;
REST= "R.I.P to the dead";


System.out.println(REST);
}
}




R.I.P to the dead

1 2 3 4 5 6 7 8 ... 12 13 14 15 16 17 18 19 20 (of 25 pages)