KINGTELLER's Posts
Nairaland Forum › KINGTELLER's Profile › KINGTELLER's Posts
1 2 3 4 5 6 7 8 ... 12 13 14 15 16 17 18 19 20 (of 25 pages)
WaffenSS: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 |
import java.util.ArrayList; public class WorkSheet { public static void main(String[] args){ String header1= "Agenda"; String header2= "Grade-Score"; String underLine = ("--------------------------------------------------------------------" ;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]= " ";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> No offence ooo. Naa Robot work... ![]() |
gioglobal:Se Ogbadun sha ![]() |
See what my program scored Buhari government for the last two months in office. ![]() public class WorkSheet{ public static void main (){ String header1= "Agenda"; String header2= "Grade-Score"; String underLine = ("----------------------------------------" ;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= " ";System.out.println ("" ;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 ("" ;} } 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 ------------------------------------------------------- |
I think all drivers should have a copy of this template ![]() |
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.. ![]() |
DoTheNeedful:I'm not inclined to politics ![]() |
DoTheNeedful:I know... build your own independent class and reference this class by creating an object of this class. |
francizy:I studied Comp. Sci so I learnt programming right from year 2. So it depends on individual |
francizy:Constant practise make the coding stick in ur memory |
nwaenugu: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 |
nigerianvenom:Hahaha.... see the program below: public class; public static void main(Strings[] args) { System.out.println (); } |
kentAire:Thats Almighty Java now... |
achemedez: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) |
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 ![]() |
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 |
ikp4succes:The program code which I wrote.. Presently, switching to C# |
ikp4succes:Yes |
ikp4succes:Thanks I will always consider your ur suggestion when doing advance coding |
GiantParrot: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 ![]() |
herald9: He dey pain you.. No vex I understand |
DonTim1:U don go quickly run am from ur compiler ![]() Oya modify with and re-run System.out.println("OUTPUT: " + Page); |
ikp4succes: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 |
InvertedHammer:hahaha... What IDE or Compiler are you using, hope no be Otigba oo ![]() |
mohammedmagnus:"LIKE" does Seun credit you for that ?? |
ibullem: Those wey sabi go decode.. if I use normal language, All this APC folks go stone me..lol ![]() |
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 ![]() |
toluine56:I am not a Java Boss.. ![]() |
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 ***** ![]() |
toluine56:You be woman?? Naa woman I dey relate with ooo...lol..... Naa joke ooo ![]() |
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)
;
";
is that c# or #c? My father be mumu, better learn well before you start copying and pasting nonsense