No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Can someone give me an example on how to reverse an inputted string? example is..when you inputted "shoes" the output would be "seohs",,then it wil determine if the inputted string is a Palindrome or not.. |
|
can someone check my codes where my error was?! [code] import java.io.*; import java.util.Arrays; public class exer06_01{ public static void main(String [] argv)throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String sh = " "; String str = new String(sh); System.out.print("Enter a string: "); str = br.readLine(); System.out.println("The reverse: "+ReverseString.reverseIt(str)); … |
|
How to make a code for this using multidimensional array in java: Underwear Unit Price Quantity Amount Brief 10.00 5 50.00 Panty 5.00 20 100.00 Bra 25.00 1 25.00 TOTAL AMOUNT: 175.00 |
|
a JAVA program that would input a string and display the total number of vowels and total number of consonants. (use method) Example: Input a string: beautiful Total Vowels: 5 Total Consonants: 4 |
|
can someone help me w/ this?! how to evaluate the EVEN or ODD..all EVEN numbers should store on arrayEven variable,while all ODD numbers store on arrayOdd variable.. [code] import java.util.Scanner; import java.util.Arrays; public class online1{ public static void main(String args[]){ int SIZE= 10; int []number = new int[SIZE]; Scanner input … |
|
Re:
you think so? if you do, please post some of your reasons why java is easy to understand in this thread.. |
|
can some1 give me an example of sorting and merging an 10 inputted integers?!using java array.. |
|
how to get the correct difference and product of dis?! [code] import java.io.*; public class exer05{ public static void main(String args[])throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int num = 0; int number = 0; int diff = 0,pro = 0,sum=0; System.out.print("Enter number of times:"); number = Integer.parseInt(br.readLine()); for(int … |
|
can some1 help me wid diz?! [code]import java.io.*; public class looping1{ public static void main(String args[])throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader (System.in)); int value = 1; for (int i = 1; i<=11;i++ ){ System.out.println(value); value = i + value;} }} [/code] the output should be: 1 2 4 … |
|
im just new here..and i really need some1 who can help me do our exercises..its about java(using looping/iteration)..i know others in java but not yet 'bout looping.. |
|
Write a JAVA program that will generate/output the following numbers. 1, 2, 4, 7, 11, 16, 32, 39, 47, 56, 66 (using looping) |
|
Write a JAVA program that will input the base and power and display the result: Example: Base is 4 Power is 2 the answer is 16 42 = 16 Base is 2 Power is 5 the answer is 32 25 = 32 Base is 0 Power is any no. the … |