Need help for my project
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   lai_lai
Posted On:   Wednesday, March 20, 2002 09:56 AM

-In the my project file have a coding called "pad". How to adjust the allignment without the padding? -In the coding part have " trim().charAt(0); " this is what? if i want replace with other what it should be...? ________________________________________ here is the source code : char choice; do { mainMenu(); choice = MyDocumentation.readLine("Option : ").trim().charAt(0); switch(choice) { case 'S': case 's': performSale(); break; case 'D': case 'd': performDailyOrder <(); break;    More>>

-In the my project file have a coding called "pad". How to
adjust the allignment without the padding?
-In the coding part have " trim().charAt(0); " this is what? if i want
replace with other what it should be...?
________________________________________
here is the source code :

char choice;

do {

mainMenu();

choice =

MyDocumentation.readLine("Option :

").trim().charAt(0);

switch(choice) {

case 'S': case 's':

performSale();

break;

case 'D': case 'd':

performDailyOrder <();

break;

case 'C': case 'c':

performCollection();

break;

}

} while(choice != 'E' && choice != 'e');

System.out.println();

}
________________________________________
another source code :

public void printDetailMain(String columnName, MyFavorite
newFavorite){

System.out.println(padSpecial(columnName,12,'L') + "["+
newFavorite.getFavoriteCode() + "] " +
padSpecial(newFavorite.getFavoriteDesc(), 15, 'L') +
padSpecial(newFavorite.getQuantityPrepare() + "", 8,
'R')
+
padSpecial(newFavorite.getQuantitySold() + "", 10,
'R') +

padSpecial(newFavorite.getSellingPrice() +
"", 18, 'R'));
}

   <<Less

Re: Need help for my project

Posted By:   Prasanna_Varadhan  
Posted On:   Wednesday, April 17, 2002 11:03 AM

excuse me but if I am not wrong this is a JMX Q/A and this no way in my RMI also involves JMX.. please put your questions in the right forum so that you will get your answers and that too a lot quickly...
About | Sitemap | Contact