Not asking for code, but I'm wondering if anyone can give me some advice and pointers for writing a code that reverses an inputted int, without using the string reverse.

If the digits were written on pieces of paper and you wanted to reverse them, how would you do it?
Take the input's right most digit and move it to the output area, shifting the digits that were already there in the output area one position to the left and appending the new digit on the right end.
Shift the input's remaining digits to the right.
Loop back and do it again.

Start the loop
Divide the number with 10 until it becomes single digit number
Get the last digit everytime by modulus operator
Append the next last digit of number and iterate the loop till num becomes single digit

Depends on how you want to do with the value afterward.

If you want to keep the value for later use, you could keep it as int and do as harinath_2007 suggested.

If you just want to display the result only, you can convert the int to String (using Integer.toString(int_value)) and then display the string in reverse.

import java.util.Scanner;
public class reverse{
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
System.out.print("Enter Number: ");
int number = scanner.nextInt();//the entered number is an integer
int reversedNumber = 0;
int temp = 0;
while(number > 0)//shifting the digits over by using %10 && *10
{
temp = number%10;
reversedNumber = reversedNumber * 10 + temp;
number = number/10;
}
System.out.print("Reversed Number is: " + reversedNumber);
System.out.println(" ");
}
}

It works great :) Thanks to everyone who contributed!

Need some help with this Array. I am trying to get the sum of the even numbers and the sum of the odd numbers using a for each loop. I know the answers to what I am trying to achive are sum of even = 84 and the sum of ...

When I execute this progammatically, I get a table with row heights much larger than when I do this manually.

Note : Sel is the Word.Selection object and the Clipboard contains an Excel Table.

public void AddClipboard()
{
Sel.PasteExcelTable(false,false, false);
var t = Sel.Tables[Sel.Tables.Count];
t.AutoFitBehavior(Word.WdAutoFitBehavior.wdAutoFitContent);
}

I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...